Updated on 2025-11-07 GMT+08:00

Checking Whether Diagnosis Is Helpful

Function

Check whether a user considers the diagnosis helpful.

URI

POST /v2.0/servicerequest/diagnose/feedback

Request Parameters

Table 1 Request header 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

Table 2 Request body parameters

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

Table 3 Response body parameters

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.