知识库

将一个知识库的内容复制到另一个知识库(异步任务)

post/knowledge-bases/copy

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

Request body

source_idstring required

Source knowledge base ID; the assistant always copies to a new knowledge base.

target_idstring
task_idstring

Response

任务ID

successboolean

Example response

{
  "success": true
}

Changes