Replace document with file
Replace an existing document with a new file while keeping its stable document ID. Content and caller metadata are overwritten, then the document is reprocessed asynchronously.
POST
TypeScript SDK
Authorizations
Path Parameters
Body
multipart/form-data
Response
Replacement accepted for processing
The document's processing state after this request. queued when new work was queued; otherwise its current state, e.g. done for an unchanged duplicate or failed for a metadata-only update to a failed document.
Available options:
unknown, queued, extracting, chunking, embedding, indexing, done, failed