知识管理

移动知识到文件夹

Changed on

批量修改知识条目所属文件夹。文件夹由路径推导而来,因此目标路径不存在时会自动创建;空路径表示知识库顶层。仅调整归类,不会重新解析文档

post/knowledge/folder

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/folder
  • Auth
    • API key in header Authorization
    • or API key in header X-API-Key

Request body

folder_pathstring

Target folder path; empty (allowed) means the knowledge base top level.

kb_idstring required

Knowledge base the documents belong to.

knowledge_idsstring[] required

Documents to move.

Response

移动成功

successboolean

Example response

{
  "success": true
}

Changes