知识管理

手工创建知识

Changed on

手工录入Markdown格式的知识内容

post/knowledge-bases/{id}/knowledge/manual

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-bases/{id}/knowledge/manual
  • 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