Skip to main content
This page shows you how to update documents in a collection. The REST request accepts an optional branch field. Omitting it writes to the default branch, main; a tag or alias is not a valid write target.
If the collection contains managed embedding vector fields, update the configured source text fields instead of sending direct vector values for managed embedding fields.
The cURL example writes to the candidate branch. Remove branch to write to main.
Each document in a payload must contain an id field to uniquely identify a document to update. For a partitioned collection, a document in the __default__ partition with a matching id value is updated if the partition field is not provided.

Update limits