ModifyIntent
Modifies an intent in the legacy canvas. This is a legacy API.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
outboundbot:ModifyIntent |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
8fa1953f-4a84-46d8-b80c-8ce9cf684fb3 |
| ScriptId |
string |
Yes |
The script ID. |
9b70486f-b1c2-429c-8a24-62798015ab1b |
| IntentId |
string |
Yes |
The intent ID. |
3b9a2b33-50d4-4576-8c68-22498f4bf731 |
| IntentName |
string |
Yes |
The intent name. |
车险如何办理 |
| IntentDescription |
string |
No |
The intent description. |
询问车险意图 |
| Utterances |
string |
Yes |
The user utterances. The value must be a JSON array of strings. |
["车险如何办理"] |
| Keywords |
string |
No |
The keywords. The value must be a JSON array of strings. |
[] |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| RequestId |
string |
The request ID. |
254EB995-DEDF-48A4-9101-9CA5B72FFBCC |
| Success |
boolean |
Indicates whether the request was successful. |
true |
| Code |
string |
The status code. |
OK |
| Message |
string |
The response message. |
Success |
| IntentId |
string |
The intent ID. |
3b9a2b33-50d4-4576-8c68-22498f4bf731 |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"RequestId": "254EB995-DEDF-48A4-9101-9CA5B72FFBCC",
"Success": true,
"Code": "OK",
"Message": "Success",
"IntentId": "3b9a2b33-50d4-4576-8c68-22498f4bf731"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidIntentName.Duplicated | The specified IntentName already exists. | |
| 500 | InternalError | An error occurred while processing your request. Please try again later. Submit a ticket if the error still exists. | |
| 404 | NotExist.Instance | The specified Instance does not exist. | |
| 404 | NotExist.Intent | The specified Intent does not exist. | |
| 404 | NotExist.Script | The specified Script does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.