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

Deleting a Tag

Function

Delete tags for a knowledge base.

URI

DELETE /v1/{project_id}/applications/{application_id}/uni-search/{repo_id}/labels/{label_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

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

label_id

Yes

String

Tag ID. The value can contain a maximum of 64 characters.

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

label_name

No

String

Definition:

ID of the tag to be deleted.

Constraints:

N/A

Value range:

N/A

Default value:

N/A

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

label_id

String

Definition:

Tag ID.

Value range:

N/A

Example Requests

Delete tags for a knowledge base.

/uni-search/0c3fae2d-428e-454c-ad80-2e5c5fa7b33a/labels/b91a92b6-89aa-46e3-98a2-5485f74da794

{
  "label_name" : "Healthcare"
}

Example Responses

None

Status Codes

Status Code

Description

200

Tags of the knowledge base deleted successfully.

Error Codes

See Error Codes.