Update knowledge base document

Update the name and/or content of a document.

路径参数

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

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
namestring可选>=1 character

A custom, human-readable name for the document.

contentstring可选

Updated content for the document. Only supported for text documents, URL documents with auto-sync disabled, and file documents.

响应

Successful Response
urlobject
OR
fileobject
OR
textobject
OR
folderobject

错误

422
Documents Update Request Unprocessable Entity Error