Skip to main content
PATCH
Error

授权

Authorization
string
header
必填

API Key 认证。对于所有 API 请求,请在 Authorization HTTP 头中包含您的 API Key,并加上 Bearer 前缀。示例:Authorization: Bearer {API_KEY}强烈建议将 API Key 存储在服务端,不要在客户端共享或存储,以避免 API Key 泄漏导致严重后果。

路径参数

dataset_id
string<uuid>
必填

知识库 ID。

action
enum<string>
必填

enable 启用,disable 停用,archive 归档,un_archive 从归档中恢复。

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

请求体

application/json
document_ids
string[]
必填

要更新的文档 ID 列表。

响应

文档更新成功。

result
string

操作结果。