知识管理

部分更新知识条目(标题/描述/自定义元数据);未传字段保持不变,显式传空 description 可清空摘要

put/knowledge/{id}

Request

  • Base URL
    /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v1/knowledge/{id}
  • Auth
    • API key in header Authorization
    • or API key in header X-API-Key

Path parameters

idstring required

知识ID

Request body

custom_metadataobject
descriptionstring

New summary; omit to keep it, empty clears it.

titlestring

New title; omit to keep it.

Response

更新成功

messagestring
successboolean

Example response

{
  "success": true
}

Changes