CreateGlobalQuestion
Creates a global question in a legacy canvas.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
outboundbot:CreateGlobalQuestion |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
361c8a53-0e29-42f3-8aa7-c7752d010399 |
| ScriptId |
string |
Yes |
The script ID. |
c5c5d8c0-c0f1-48a7-be2b-dc46006d888a |
| GlobalQuestionName |
string |
Yes |
The name of the global question. |
未识别全局问题 |
| GlobalQuestionType |
string |
Yes |
The type of the global question. |
COMMON |
| Questions |
string |
Yes |
The questions that trigger the global question. |
["未识别的用户问题"] |
| Answers |
string |
Yes |
The answers to the global question. |
["你好,您可以再说一遍吗","不好意思我刚才没有听清"] |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| GlobalQuestionId |
string |
The ID of the global question. |
a546b616-724b-437f-bdb3-629a30c98567 |
| RequestId |
string |
The request ID. |
56666881-887A-530A-B679-C3B6B6B142C0 |
| Success |
boolean |
Indicates whether the request succeeded. |
true |
| Code |
string |
The status code of the request. |
OK |
| Message |
string |
The response message. |
Success |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"GlobalQuestionId": "a546b616-724b-437f-bdb3-629a30c98567",
"RequestId": "56666881-887A-530A-B679-C3B6B6B142C0",
"Success": true,
"Code": "OK",
"Message": "Success"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidGlobalQuestionName.Duplicated | The specified GlobalQuestionName 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.Script | The specified Script does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.