Skip to main content
patch/knowledge-fs/spaces/{knowledge_base_id}/settings
Request example
Response
patch/knowledge-fs/spaces/{knowledge_base_id}/settings

Authorization

Authorizationstringheaderrequired#

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

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

Path parameters

knowledge_base_idstringrequired#
知识库 ID:即知识库 API 访问 对话框中所示服务 API 端点的最后一段(…/knowledge-fs/spaces/<knowledge base ID>),也是地址栏中 /datasets/new/ 之后的那一段。

Body

application/json

Responses

application/json
未启动迁移:设置已保存为待生效状态,或模型已生效且此更改无需迁移。settings 的结构与 获取知识库设置 相同,下次更新时发送其中的 revision。设置处于待生效状态期间,active_profile_available 保持为 false,capabilities.query 也保持为 false。
migrationobject#
此处始终为 null:未启动迁移。
settingsobject#