跳转到主要内容
PUT
/
api
/
knowledge-base
/
{id}
curl --request PUT \
  --url https://zeus-api.agentspro.cn/api/knowledge-base/kb_abc123 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "产品文档 v2",
    "description": "更新后的产品文档"
  }'
{
  "id": "kb_abc123",
  "name": "产品文档 v2",
  "description": "更新后的产品文档",
  "status": "active",
  "updatedAt": "2025-06-20T09:00:00Z"
}
Authorization
string
必填
Bearer JWT Token
id
string
必填
知识库 ID
name
string
新的知识库名称
description
string
新的知识库描述
status
string
知识库状态(active / archived
id
string
知识库唯一标识
name
string
更新后的名称
description
string
更新后的描述
status
string
更新后的状态
updatedAt
string
更新时间(ISO 8601)
curl --request PUT \
  --url https://zeus-api.agentspro.cn/api/knowledge-base/kb_abc123 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "产品文档 v2",
    "description": "更新后的产品文档"
  }'
{
  "id": "kb_abc123",
  "name": "产品文档 v2",
  "description": "更新后的产品文档",
  "status": "active",
  "updatedAt": "2025-06-20T09:00:00Z"
}