Deleting FAQs in Batches
Function
Select multiple FAQs to be deleted and delete them in batches by ID.
URI
DELETE /v1/{project_id}/applications/{application_id}/uni-search/faq/batch
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
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 |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
repo_id |
Yes |
String |
Definition: Knowledge base ID. Value range: N/A 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: The value can contain only 1 to 64 characters. Only digits, letters, hyphens (-), and underscores (_) are allowed. |
faq_ids |
Yes |
Array of strings |
Definition: ID array of FAQs to be deleted. An FAQ ID can contain only 1 to 64 characters. Only digits, letters, hyphens (-), and underscores (_) are allowed. Value range: N/A |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
total_count |
Integer |
Definition: Total number. Value range: N/A |
deleted_count |
Integer |
Definition: Number of records deleted. Value range: N/A |
Example Requests
Delete FAQ instances in batches.
/v1/b25446daeb1a41a7953c5deba2b2677a/applications/be9b19bf-4865-4fb8-b9f8-2fd1fea98d76/uni-search/faq/batch { "repo_id" : "0c3fae2d-428e-454c-ad80-2e5c5fa7b33a", "faq_ids" : [ "f068684d-3d52-4c78-b65f-2e917eb8ad32" ] }
Example Responses
Status code: 200
Succeeded.
{ "totalCount" : 2, "deletedCount" : 2 }
Status Codes
Status Code |
Description |
---|---|
200 |
Succeeded. |
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.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot