Create knowledge base document from file

Create a knowledge base document generated form the uploaded file.

请求头

xi-api-keystring可选

请求

This endpoint expects a multipart form containing a file.
filefile必需
Documentation that the agent will have access to in order to interact with users.
namestring可选>=1 character

A custom, human-readable name for the document.

parent_folder_idstring可选
If set, the created document or folder will be placed inside the given folder.

响应

Successful Response
idstring
namestring
folder_pathlist of objects可选
The folder path segments leading to this entity, from root to parent folder.

错误

422
Documents Create from File Request Unprocessable Entity Error