Documents

Update Document Text

Update a document with new text content using the specified strategy.

Args: document_id: ID of the document to update request: Text content and metadata for the update update_strategy: Strategy for updating the document (default: 'add') auth: Authentication context

Returns: Document: Updated document metadata

post/documents/{document_id}/update_text

Path parameters

document_idstring required

Query parameters

update_strategystring

Headers

authorizationstring

Request body

contentstring required
filenamestring nullable
metadataobject
use_colpaliboolean nullable
folder_namestring nullable

Optional folder scope for the operation

end_user_idstring nullable

Optional end-user scope for the operation

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