DescribeGlobalQuestion
Retrieves the details of a global question in a legacy canvas script.
Operation description
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
outboundbot:DescribeGlobalQuestion |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. |
7cefbff0-8d50-4d6f-b93c-73cee23c1555 |
| ScriptId |
string |
Yes |
The ID of the script. |
b7ee988b-2837-4bc1-9d56-f76e7c831f60 |
| GlobalQuestionId |
string |
Yes |
The ID of the global question. |
e851e242-ad67-4507-96a2-d4114564dcec |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Code |
string |
The status code. |
OK |
| Message |
string |
The returned message. |
Success |
| RequestId |
string |
The request ID. |
254EB995-DEDF-48A4-9101-9CA5B72FFBCC |
| Success |
boolean |
Indicates whether the request was successful. |
true |
| GlobalQuestion |
object |
The details of the global question. |
|
| GlobalQuestionId |
string |
The ID of the global question. |
f160ec2e-94f2-4c03-87be-ece5b52d5dd9 |
| Answers |
string |
The answers to the global question. |
["你好,我是你的专属客服顾问."] |
| GlobalQuestionType |
string |
The type of the global question. |
COMMON |
| GlobalQuestionName |
string |
The name of the global question. |
你是谁-全局问题 |
| Questions |
string |
The questions mapped to this global question. |
["你是谁","你叫什么"] |
| ScriptId |
string |
The ID of the script. |
290e06a5-6de2-4cc8-8a9c-72b7c152256c |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"Code": "OK",
"Message": "Success",
"RequestId": "254EB995-DEDF-48A4-9101-9CA5B72FFBCC",
"Success": true,
"GlobalQuestion": {
"GlobalQuestionId": "f160ec2e-94f2-4c03-87be-ece5b52d5dd9",
"Answers": "[\"你好,我是你的专属客服顾问.\"]",
"GlobalQuestionType": "COMMON",
"GlobalQuestionName": "你是谁-全局问题",
"Questions": " [\"你是谁\",\"你叫什么\"]",
"ScriptId": "290e06a5-6de2-4cc8-8a9c-72b7c152256c"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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.