AddAnswerSample
Adds fallback answers.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-greenweb:AddAnswerSample |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| LibId |
string |
No |
The ID of the fallback answer library. |
alxxxx |
| Samples |
string |
No |
The samples to be added. |
Fallback answer 1\nFallback answer 2 |
| SampleObject |
string |
No |
The name of the file that contains the fallback answer samples to be added. |
data/xxx.xlsx |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The ID assigned by the backend to uniquely identify a request. You can use this ID to troubleshoot issues. |
AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE**** |
| LibId |
string |
The ID of the fallback answer library. |
alxxxx |
| TaskId |
string |
The task ID. |
alAxbbxxxx-xxx |
| Result |
object |
The result. |
|
| Progress |
integer |
The progress. A value of 90 indicates 90%. |
100 |
| LibId |
string |
The ID of the fallback answer library. |
alxxxx |
| TaskId |
string |
The task ID. |
alAxbbxxxx-xxx |
| I18nKey |
string |
The internationalization key. |
common.success |
| TotalCount |
integer |
The total number of records. |
534 |
| SuccessCount |
integer |
The number of successful records. |
318 |
| RepeatCount |
integer |
The number of duplicate records. |
98 |
| InvalidCount |
integer |
The number of invalid records. |
118 |
| RepeatSamples |
array |
The collection of duplicate samples. |
|
|
string |
The duplicate sample. |
Duplicate fallback answer |
|
| IllegalLengthSamples |
array |
The collection of samples that are too long or too short. |
|
|
string |
The sample that is too long or too short. |
Short fallback answer |
Examples
Success response
JSON format
{
"RequestId": "AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****",
"LibId": "alxxxx",
"TaskId": "alAxbbxxxx-xxx\n",
"Result": {
"Progress": 100,
"LibId": "alxxxx",
"TaskId": "alAxbbxxxx-xxx\n",
"I18nKey": "xxx",
"TotalCount": 534,
"SuccessCount": 318,
"RepeatCount": 98,
"InvalidCount": 118,
"RepeatSamples": [
"Duplicate fallback answer"
],
"IllegalLengthSamples": [
"Fallback answer that is too short"
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.