Pattern - Update Patterns
Uppdateringar mönster i en version av programmet.
PUT {Endpoint}/luis/api/v2.0/apps/{appId}/versions/{versionId}/patternrules
URI-parametrar
Name | I | Obligatorisk | Typ | Description |
---|---|---|---|---|
app
|
path | True |
string uuid |
Program-ID:t. |
Endpoint
|
path | True |
string |
Cognitive Services-slutpunkter som stöds (protokoll och värdnamn, till exempel: https://westus.api.cognitive.microsoft.com). |
version
|
path | True |
string |
Versions-ID. |
Begärandehuvud
Name | Obligatorisk | Typ | Description |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
Begärandetext
Name | Typ | Description |
---|---|---|
patterns |
En matris representerar mönstren. |
Svar
Name | Typ | Description |
---|---|---|
200 OK |
De uppdaterade mönstren |
|
Other Status Codes |
Felsvar. |
Säkerhet
Ocp-Apim-Subscription-Key
Type:
apiKey
In:
header
Exempel
Successful Batch Update Patterns request
Sample Request
PUT {Endpoint}/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/patternrules
[
{
"id": "cc8fa554-cc6c-4bcc-97eb-c8e5bc2091b3",
"pattern": "Who's {Name} reporting to?",
"intent": "report to"
},
{
"id": "cc8fa554-cc6c-4bcc-97eb-c8e5bc2091b3",
"pattern": "Who's {Name} reporting to?",
"intent": "report to"
}
]
Sample Response
[
{
"id": "cc8fa554-cc6c-4bcc-97eb-c8e5bc2091b3",
"pattern": "who's {Name} reporting to?",
"intent": "report to"
},
{
"id": "cc8fa554-cc6c-4bcc-97eb-c8e5bc2091b3",
"pattern": "who's {Name} reporting to?",
"intent": "report to"
}
]
Definitioner
Name | Description |
---|---|
Error |
Felsvar vid anrop av en åtgärd i API:et. |
Pattern |
Mönsterregel |
Pattern |
Objektmodell för uppdatering av ett mönster. |
ErrorResponse
Felsvar vid anrop av en åtgärd i API:et.
Name | Typ | Description |
---|---|---|
errorType |
string |
PatternRuleInfo
Mönsterregel
Name | Typ | Description |
---|---|---|
id |
string |
Mönster-ID. |
intent |
string |
Avsiktens namn där mönstret tillhör. |
pattern |
string |
Mönstertexten. |
PatternRuleUpdateObject
Objektmodell för uppdatering av ett mönster.
Name | Typ | Description |
---|---|---|
id |
string |
Mönster-ID. |
intent |
string |
Avsiktens namn som mönstret tillhör. |
pattern |
string |
Mönstertexten. |