Checking Whether Diagnosis Is Helpful
Function
Check whether a user considers the diagnosis helpful.
URI
POST /v2.0/servicerequest/diagnose/feedback
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 |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
type |
Yes |
Integer |
Specifies the task type, for example, 1 indicates an ECS diagnosis task and 2 indicates an RDS diagnosis task. Minimum value: 1 Maximum value: 4 |
|
content |
No |
String |
Specifies the feedback content. Minimum length: 0 Maximum length: 10000 |
|
is_helpful |
Yes |
Boolean |
Specifies whether the user considers the diagnosis helpful. |
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 |
Request Example
POST https://{endpoint}/v2.0/servicerequest/diagnose/feedback
{
"type" : 1,
"content" : "Feedback content",
"is_helpful" : true
}
Response Example
Status code: 200
Code 200 is returned if the operation is successful.
{
"error_code" : "Error code",
"error_msg" : "Error description"
}
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.