跳转到主要内容
PATCH
/
datasets
/
{dataset_id}
/
documents
/
status
/
{action}
{
  "result": "success"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

dataset_id
string<uuid>
required

知识库的 ID。

action
enum<string>
required

对文档执行的操作。

可用选项:
enable,
disable,
archive,
un_archive

Body

application/json
document_ids
string<uuid>[]
required

要执行操作的文档 ID 列表。

Response

200 - application/json

操作成功。

result
string
Example:

"success"