知识管理

更新手工知识

Changed on

更新手工录入的Markdown知识内容

put/knowledge/manual/{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/manual/{id}
  • Auth
    • API key in header Authorization
    • or API key in header X-API-Key

Path parameters

idstring required

知识ID

Request body

channelstring
contentstring

Markdown content. The assistant may send a full document; the API limit is 200000 runes, and x-agent-max-bytes covers that in UTF-8.

status'draft' | 'publish'

draft keeps the document out of search; publish indexes it.

tag_idsstring[]
titlestring

Document title.

Response

更新后的知识

successboolean

Example response

{
  "success": true
}

Changes