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

Re-Importing FAQ Files

Function

Import an FAQ file again.

URI

PUT /v1/{project_id}/applications/{application_id}/uni-search/{repo_id}/faq/batch/retry/{file_id}

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

file_id

Yes

String

Definition:

File ID.

Constraints:

N/A

Value range:

Length: 1 to 64 characters. The value can contain only digits, letters, hyphens (-), and underscores (_).

Default value:

N/A

repo_id

Yes

String

Definition:

Knowledge base ID.

How to obtain:

Log in to the KooSearch experience platform. In the navigation tree on the left, choose Knowledge Bases to view knowledge base IDs. Each knowledge base has a unique ID stored in the vector database.

Constraints:

N/A

Value range:

Length: 1 to 64 characters. The value can contain only digits, letters, hyphens (-), and underscores (_).

Default value:

N/A

Request Parameters

Table 2 FormData parameters

Parameter

Mandatory

Type

Description

rule

No

String

Definition:

Question matching rule.

Constraints:

N/A

Value range:

N/A

Default value:

N/A

Response Parameters

Status code: 200

Update succeeded.

None

Example Requests

Import an FAQ file again.

/v1/ee51ecd9-bc3c-4e98-b7df-ba6647350af2/applications/01d3c218-4d37-489a-98ff-69d69ea44bb1/uni-search/8cfc16ce-2b54-4ed2-a1fe-6259862082bb/faq/batch/retry/4cb76f51-e9c1-4784-8c47-a42aabca0c3e

{
  "rule" : "^[one two three four five six eighty ninety]{1,7}"
}

Example Responses

None

Status Codes

Status Code

Description

200

Update succeeded.

Error Codes

See Error Codes.