跳转到主要内容
POST
/
datasets
/
tags
/
binding
将数据集绑定到知识库类型标签
curl --request POST \
  --url http://{apiBaseUrl}/datasets/tags/binding \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "target_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "tag_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}
'
{
  "result": "success"
}

Authorizations

Authorization
string
header
required

API-Key 鉴权。所有 API 请求都应在 Authorization HTTP Header 中包含你的 API-Key,格式为 Bearer {API_KEY}强烈建议开发者把 API-Key 放在后端存储,而非分享或者放在客户端存储,以免 API-Key 泄露,导致财产损失。

Body

application/json
target_id
string<uuid>
required

要绑定标签的数据集 ID。

tag_ids
string<uuid>[]
required

要绑定的标签 ID 列表。

Response

200 - application/json

操作成功。

result
string
Example:

"success"