Update document file

Update the source file of a file document. The document name, content, and metadata are updated to reflect the new file. Any manual content edits will be overwritten.

路径参数

documentation_idstring必需
The id of a document from the knowledge base. This is returned on document addition.

请求头

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.

响应

Successful Response
urlobject
OR
fileobject
OR
textobject
OR
folderobject

错误

422
Document Update File Request Unprocessable Entity Error