Model - Create Hierarchical Entity Role
Skapa en roll för en hierarkisk entitet i en version av programmet.
POST {Endpoint}/luis/api/v2.0/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles
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). |
h
|
path | True |
string (uuid) |
Det hierarkiska entitetsextraktor-ID:t. |
version
|
path | True |
string |
Versions-ID:t. |
Name | Obligatorisk | Typ | Description |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
Name | Typ | Description |
---|---|---|
name |
string |
Namnet på entitetens roll. |
Name | Typ | Description |
---|---|---|
201 Created |
string |
ID för den skapade entitetsrollen |
Other Status Codes |
Felsvar. |
Typ:
apiKey
I:
header
Exempelbegäran
POST {Endpoint}/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/fc821c4e-a2f8-4074-9410-7271b38a692d/roles
{
"name": "sample role"
}
Exempelsvar
Location: https://westus.api.cognitive.microsoft.com/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/fc821c4e-a2f8-4074-9410-7271b38a692d/roles/3d73462d-98f0-4dcd-8d30-fab9e65f2e73
"3d73462d-98f0-4dcd-8d30-fab9e65f2e73"
Name | Description |
---|---|
Entity |
Objektmodell för att skapa en entitetsroll. |
Error |
Felsvar när en åtgärd anropas i API:et. |
Objektmodell för att skapa en entitetsroll.
Name | Typ | Description |
---|---|---|
name |
string |
Namnet på entitetens roll. |
Felsvar när en åtgärd anropas i API:et.
Name | Typ | Description |
---|---|---|
errorType |
string |