Submitting/Canceling Evaluation
Function
Submit or cancel the evaluation on the Q&A.
URI
POST /v2/irobot/feedbacks
Request Parameters
Parameter | Mandatory | Type | Description |
|---|---|---|---|
X-Auth-Token | Yes | String | Specifies the user token. It can be obtained by calling the IAM API (value of X-Subject-Token in the response header). Minimum length: 1 Maximum length: 5000 |
x-service-key | No | String | Specifies the flag for invoking the intelligent customer service. Minimum length: 1 Maximum length: 32 |
x-site | No | String | Specifies the site flag. The options are 0 (Chinese mainland) and 1 (international). Minimum length: 0 Maximum length: 1 |
x-language | No | String | Specifies the region language with a language abbreviation. The options are en-us and zh-cn. Minimum length: 0 Maximum length: 32 |
Parameter | Mandatory | Type | Description |
|---|---|---|---|
question | Yes | String | Specifies the question from the user. Minimum length: 1 Maximum length: 1000 |
feedback_id | No | String | Subscriber the feedback record ID. Minimum length: 0 Maximum length: 64 |
qa_pair_source | No | String | Specifies the Q&A pair source. Options: |
feedback_option_id | No | String | Specifies the feedback option ID. |
feedback_description | No | String | Describes the feedback. Minimum length: 0 Maximum length: 100 |
qa_pair_id | No | String | Specifies the Q&A pair ID. Minimum length: 0 Maximum length: 64 |
request_id | No | String | Specifies the request ID. |
feedback_source | Yes | String | Specifies the feedback source. Options: |
flow_node_id | No | String | Specifies the flow node ID. Minimum length: 0 Maximum length: 64 |
Response Parameters
Status code: 200
Parameter | Type | Description |
|---|---|---|
error_code | String | Specifies the error code. Minimum length: 0 Maximum length: 32 |
error_msg | String | Describes the error. Minimum length: 0 Maximum length: 32 |
feedback_id | String | Specifies the feedback record ID. Minimum length: 0 Maximum length: 64 |
Request Example
POST https://{endpoint}/v2/irobot/feedbacks?feedback_type=LIKE
{
"question" : "User question",
"feedback_option_id" : "feedback-id",
"qa_pair_source" : "IROBOT_QA",
"feedback_id" : "feedback-id",
"feedback_source" : "Feedback source"
} Response Example
Status code: 200
Code 200 is returned if the operation is successful.
{
"feedback_id" : "feedback-id"
} Status Codes
Status Code | Description |
|---|---|
200 | Code 200 is returned if the operation is successful. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.

