v5

latestOpenAPI 3.1.02026-08-025631,1012.8 MB
Collection Documents

Bulk Update Documents

Bulk update documents matching filter conditions.

Partially updates all documents in the collection that match the provided filters. If no filters are provided, updates all documents in the collection.

This endpoint applies the SAME update_data to ALL documents matching the filters. For per-document updates with different values, use POST /batch endpoint instead.

patch/v1/collections/{collection_identifier}/documents/bulk

Path parameters

collection_identifierstring required

The ID of the collection to update documents in.

The ID of the collection to update documents in.

Request body

update_dataobject required

REQUIRED. Dictionary of field-value pairs to update on ALL matching documents. Can update any document field except vectors (metadata, source_blobs, etc.). All matched documents receive the SAME updates. Example: {'metadata.status': 'processed', 'metadata.reviewed': true}

Example request

{
  "description": "Update all pending documents to processed",
  "filters": {
    "AND": [
      {
        "field": "metadata.status",
        "operator": "eq",
        "value": "pending"
      }
    ]
  },
  "update_data": {
    "metadata": {
      "status": "processed"
    }
  }
}

Response

Successful Response

updated_countinteger required

Number of documents that were updated.

messagestring