v6

latestOpenAPI 3.0.1raw.githubusercontent.com2026-08-0182128753.1 KB
Documents

Update Document

Updates a document by uploading a new file, then re-indexes it. This is the canonical endpoint for file-based document updates. Track progress with the returned batch ID via Get Document Indexing Status.

patch/datasets/{dataset_id}/documents/{document_id}

Path parameters

dataset_idstring uuid required

Knowledge base ID. From List Knowledge Bases.

document_idstring uuid required

Document ID. From List Documents.

Response

Document updated successfully.

batchstring

Batch ID for tracking indexing progress.