Updated on 2025-08-13 GMT+08:00

Feedback Q&A

Function

Create a Q&A feedback. The feedback information includes the question, feedback tag, and feedback details.

URI

POST /v1/{project_id}/applications/{application_id}/uni-search/experience/feedback

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition:

Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

Constraints:

N/A

Value range:

The value can contain 1 to 64 characters. Only digits, letters, hyphens (-), and underscores (_) are allowed. The value must start with a letter.

Default value:

N/A

application_id

Yes

String

Definition:

Application ID. For details about how to obtain the application ID, see Obtaining an Application ID.

Constraints:

Character string

Value range:

The value can contain 1 to 64 characters. Only digits, letters, hyphens (-), and underscores (_) are allowed. The value must start with a letter.

Default value:

N/A

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Definition:

Token used for API authentication. For details about how to obtain the token, see Obtaining an IAM User Token.

Constraints:

N/A

Value range:

N/A

Default value:

N/A

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

repo_id

No

String

Definition:

Knowledge base ID.

Constraints:

N/A

Value range:

The value can contain 1 to 128 characters. It can only contain letters, digits, underscores (_), periods (.), and hyphens (-).

Default value:

N/A

question_id

Yes

String

Definition:

Q&A ID.

Constraints:

N/A

Value range:

The value can contain 1 to 128 characters. It can only contain letters, digits, underscores (_), periods (.), and hyphens (-).

Default value:

N/A

chat_id

No

String

Definition:

Chat ID.

Constraints:

N/A

Value range:

The value can contain 1 to 128 characters. It can only contain letters, digits, underscores (_), periods (.), and hyphens (-).

Default value:

N/A

feedback_type

Yes

String

Definition:

Feedback type.

Constraints:

N/A

Value range:

  • like

  • unlike

Default value:

N/A

feedback_second_type

No

String

Definition:

Feedback level-2 type. Multiple types are separated by commas (,). The maximum length is 1024 characters. The value can contain only letters, underscores (_), commas (,), and spaces.

Constraints:

N/A

Value range:

The value can contain a maximum of 1024 characters. It can only contain letters, underscores (_), commas (,), and spaces.

Default value:

N/A

expect_answer

No

String

Definition:

Expected answer (not used currently).

Constraints:

N/A

Value range:

The maximum length is 1,024 characters.

Default value:

N/A

feedback_detail

No

String

Definition:

Feedback details.

Constraints:

N/A

Value range:

The maximum length is 1,024 characters.

Default value:

N/A

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

id

String

Definition:

Feedback ID.

Value range:

N/A

Status code: 400

Table 5 Response body parameters

Parameter

Type

Description

error_code

String

Definition:

Error Code.

Value range:

N/A

error_msg

String

Definition:

Error message.

Value range:

N/A

Status code: 500

Table 6 Response body parameters

Parameter

Type

Description

error_code

String

Definition:

Error Code.

Value range:

N/A

error_msg

String

Definition:

Error message.

Value range:

N/A

Example Requests

Feedback Q&A.

/v1/12354354/applications/123535543/uni-search/experience/feedback

{
  "repo_id" : "09fa81ee-ab8c-473d-a3e5-d230de3cab00",
  "chat_id" : "123456",
  "question_id" : "12443453",
  "feedback_type" : "unlike",
  "feedback_second_type" : "Incomplete content",
  "expect_answer" : "Comprehensive content",
  "feedback_detail" : "Accurate answer"
}

Example Responses

Status code: 200

Successful response.

{
  "id" : "123456"
}

Status Codes

Status Code

Description

200

Successful response.

400

Request error.

500

Service error.

Error Codes

See Error Codes.