Skip to main content
patch/datasets/tags
Request example
Response
patch/datasets/tags

Authorization

Authorizationstringheaderrequired#

Every request authenticates with an API key: Authorization: Bearer {API_KEY}. App endpoints take an app API key; knowledge endpoints take a knowledge base API key (Get Started).

Keep keys server-side; never embed them in client code. Requests with a missing or invalid key fail with HTTP 401 (unauthorized).

Body

application/json
namestringrequired#
New name for the tag. Must be unique within the workspace.

Length: 1–50

tag_idstringrequired#
ID of the tag to rename. See List Knowledge Type Tags.

Responses

application/json
Tag updated successfully.
binding_countstring#
Number of knowledge bases bound to this tag.
idstring#
Tag identifier.
namestring#
Tag display name.
typestring#
Tag type. Always knowledge for knowledge base tags.