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

Authorization

Authorizationstringheaderrequired#

每个请求都通过 API Key 认证:Authorization: Bearer {API_KEY}。应用接口使用应用 API Key,知识库接口使用知识库 API Key(快速开始)。

API Key 应保存在服务端,切勿嵌入客户端代码。缺失或无效的 Key 会返回 HTTP 401(unauthorized)。

Body

application/json
namestringrequired#
标签名称。在工作空间内必须唯一。

Length: 1–50

Responses

application/json
标签创建成功。
binding_countstring#
绑定到该标签的知识库数量。
idstring#
标签标识符。
namestring#
标签显示名称。
typestring#
标签类型。知识库标签始终为 knowledge。