Skip to main content
PATCH
Update

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

data_id
string<uuid>
required

UUID of the existing document to update (returned by GET /api/v1/datasets/{dataset_id}/data).

Example:

"9c4e4a4b-2b1a-4f6e-9d3a-1c2b3d4e5f6a"

dataset_id
string<uuid>
required

UUID of the dataset containing the document to update.

Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

chunk_level_diff
boolean
default:true

Diff the new content against the stored text and re-ingest only the affected chunks. Falls back to the full delete + re-add + cognify flow when chunk-level preconditions are not met.

Body

multipart/form-data
data
file[]
required

New version of the document that replaces the existing one. With chunk_level_diff enabled (default) only the chunks affected by the edit are replaced; otherwise the document is deleted and re-ingested.

node_set
string[] | null

Node identifiers for graph organization and access control.

Example:

Response

Successful Response

status
enum<string>
required
Available options:
incremental,
unchanged
regions
integer
required
deleted_chunks
integer
required
added_chunks
integer
required
reused_chunks
integer
required
kept_chunks
integer
required
reindexed_chunks
integer
required