Model - Update Intent
Frissítések egy szándék nevét az alkalmazás egy verziójában.
PUT {Endpoint}/luis/api/v2.0/apps/{appId}/versions/{versionId}/intents/{intentId}
URI-paraméterek
Name | In | Kötelező | Típus | Description |
---|---|---|---|---|
app
|
path | True |
string uuid |
Az alkalmazás azonosítója. |
Endpoint
|
path | True |
string |
Támogatott Cognitive Services-végpontok (protokoll és állomásnév, például: https://westus.api.cognitive.microsoft.com). |
intent
|
path | True |
string uuid |
A szándékosztályozó azonosítója. |
version
|
path | True |
string |
A verzióazonosító. |
Kérelem fejléce
Name | Kötelező | Típus | Description |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
Kérelem törzse
Name | Típus | Description |
---|---|---|
name |
string |
Az entitás új neve. |
Válaszok
Name | Típus | Description |
---|---|---|
200 OK |
Sikeres művelet. |
|
Other Status Codes |
Hibaválasz. |
Biztonság
Ocp-Apim-Subscription-Key
Type:
apiKey
In:
header
Példák
Successful Rename Intent Model request
Sample Request
PUT {Endpoint}/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents/d7a08f1a-d276-4364-b2d5-b0235c61e37f
{
"name": "newTest"
}
Sample Response
{
"code": "Success",
"message": "Operation Successful"
}
Definíciók
Name | Description |
---|---|
Error |
Hibaválasz az API-ra irányuló művelet meghívásakor. |
Model |
Objektummodell szándékosztályozó frissítéséhez. |
Operation |
Műveletállapot válasza. |
Operation |
Állapotkód. |
ErrorResponse
Hibaválasz az API-ra irányuló művelet meghívásakor.
Name | Típus | Description |
---|---|---|
errorType |
string |
ModelUpdateObject
Objektummodell szándékosztályozó frissítéséhez.
Name | Típus | Description |
---|---|---|
name |
string |
Az entitás új neve. |
OperationStatus
Műveletállapot válasza.
Name | Típus | Description |
---|---|---|
code |
Állapotkód. |
|
message |
string |
Állapotadatok. |
OperationStatusType
Állapotkód.
Name | Típus | Description |
---|---|---|
FAILED |
string |
|
Failed |
string |
|
Success |
string |