Documents

Update Document File

Update a document with content from a file using the specified strategy.

Args: document_id: ID of the document to update file: File to add to the document metadata: JSON string of metadata to merge with existing metadata update_strategy: Strategy for updating the document (default: 'add') use_colpali: Whether to use multi-vector embedding auth: Authentication context

Returns: Document: Updated document metadata

post/documents/{document_id}/update_file

Path parameters

document_idstring required

Headers

authorizationstring

Response

Successful Response

external_idstring
content_typestring required
filenamestring nullable
metadataobject
storage_infoobject
system_metadataobject
additional_metadataobject
chunk_idsstring[]
folder_namestring nullable
end_user_idstring nullable
app_idstring nullable

Changes