知识管理

重命名或移动文件夹

Changed on

把一个文件夹及其所有子目录改到新路径。目标路径已存在时两个文件夹合并;不能移动到自身子目录下

put/knowledge-bases/{id}/knowledge/folders

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

Path parameters

idstring required

知识库ID

Request body

fromstring required

Current folder path.

tostring required

New folder path.

Response

重命名成功

successboolean

Example response

{
  "success": true
}

Changes