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

Deleting FAQs in Batches

Function

Select multiple FAQs to be deleted and delete them in batches by ID.

URI

DELETE /v1/koosearch/repos/{repo_id}/faqs

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

repo_id

Yes

String

Knowledge base ID. The value is a string of 1 to 64 characters and can contain only digits, letters, hyphens (-), and underscores (_).

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.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Parameter description:

Token used for API authentication. For how to obtain the token, see section 3.2 "Authentication."

Constraints:

N/A.

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

repo_id

Yes

String

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.

faq_ids

Yes

Array of strings

ID array of FAQs to be deleted.

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

total_count

Integer

Total number of records requested for deletion.

deleted_count

Integer

Number of successfully deleted records.

Example Requests

None

Example Responses

Status code: 200

Deleted.

{
  "totalCount" : 2,
  "deletedCount" : 2
}

Status Codes

Status Code

Description

200

Deleted.

Error Codes

See Error Codes.