Model - Add Explicit List Item
Lägg till ett nytt undantag i den explicita listan för Pattern.Any-entiteten i en version av programmet.
POST {Endpoint}/luis/api/v2.0/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist
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). |
|
entity
|
path | True |
string (uuid) |
Extrahering-ID:t för entiteten Pattern.Any. |
|
version
|
path | True |
string |
Versions-ID:t. |
Begärandehuvud
| Name | Obligatorisk | Typ | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | True |
string |
Begärandetext
| Name | Typ | Description |
|---|---|---|
| explicitListItem |
string |
Det explicita listobjektet. |
Svar
| Name | Typ | Description |
|---|---|---|
| 201 Created |
integer |
ID för det skapade explicita listobjektet. |
| Other Status Codes |
Felsvar. |
Säkerhet
Ocp-Apim-Subscription-Key
Typ:
apiKey
I:
header
Exempel
Successful Create Custom Prebuilt Entity Role request
Exempelbegäran
POST {Endpoint}/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/patternanyentities/fc821c4e-a2f8-4074-9410-7271b38a692d/explicitlist
{
"explicitListItem": "item 1"
}
Exempelsvar
Location: https://westus.api.cognitive.microsoft.com/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/patternanyentities/fc821c4e-a2f8-4074-9410-7271b38a692d/explicitlist/8645
8645
Definitioner
| Name | Description |
|---|---|
|
Error |
Felsvar när en åtgärd anropas i API:et. |
|
Explicit |
Objektmodell för att skapa ett explicit (undantag) listobjekt. |
ErrorResponse
Felsvar när en åtgärd anropas i API:et.
| Name | Typ | Description |
|---|---|---|
| errorType |
string |
ExplicitListItemCreateObject
Objektmodell för att skapa ett explicit (undantag) listobjekt.
| Name | Typ | Description |
|---|---|---|
| explicitListItem |
string |
Det explicita listobjektet. |