Replace Document Content

View as Markdown
Replace the entire content of a document while preserving its metadata and configuration. Supports file replacement with automatic reprocessing.

Path parameters

document_idintegerRequired
Document ID

Request

This endpoint expects a multipart form.
document_namestring or nullOptional
document_urlstring or nullOptional
contentstring or nullOptional
configany or nullOptional
document_filestringOptionalformat: "uri"

Response

Content replaced successfully
document_namestring or null
document_urlstring or null
contentstring or null
configany or null

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error