Batch update multiple documents by explicit IDs or filters.
Supports TWO modes:
Explicit IDs mode: Provide ‘updates’ array with document_id + update_data for each document
Filter mode: Provide ‘filters’ + ‘update_data’ to update all matching documents
Key Features:
Examples: Explicit IDs mode:
{
"updates": [
{"document_id": "doc_123", "update_data": {"metadata": {"status": "processed"}}},
{"document_id": "doc_456", "update_data": {"metadata": {"status": "archived"}}}
]
}
Filter mode:
{
"filters": {"must": [{"key": "metadata.status", "value": "pending"}]},
"update_data": {"metadata": {"status": "processed"}}
}
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
REQUIRED: Bearer token authentication using your API key. Format: 'Bearer sk_xxxxxxxxxxxxx'. You can create API keys in the Mixpeek dashboard under Organization Settings. REQUIRED: Bearer token authentication using your API key. Format: 'Bearer sk_xxxxxxxxxxxxx'. You can create API keys in the Mixpeek dashboard under Organization Settings.
REQUIRED: Namespace identifier for scoping this request. All resources (collections, buckets, taxonomies, etc.) are scoped to a namespace. You can provide either the namespace name or namespace ID. Format: ns_xxxxxxxxxxxxx (ID) or a custom name like 'my-namespace' REQUIRED: Namespace identifier for scoping this request. All resources (collections, buckets, taxonomies, etc.) are scoped to a namespace. You can provide either the namespace name or namespace ID. Format: ns_xxxxxxxxxxxxx (ID) or a custom name like 'my-namespace'
The ID of the collection to update documents in. The ID of the collection to update documents in.
Request model for batch updating multiple documents by explicit IDs or filters.
Supports TWO modes:
Key difference from BulkUpdateDocumentsRequest:
Use Cases: - Update 5 specific documents with different metadata values - Update documents by IDs with per-document update control - Combine with filters for targeted batch updates
Requirements: - EITHER 'updates' (explicit mode) OR 'filters' + 'update_data' (filter mode) - NOT BOTH modes simultaneously
OPTIONAL. List of document updates with explicit document IDs. Each entry specifies document_id and update_data. Use this mode when you know exact document IDs and want per-document control. Mutually exclusive with filters + update_data mode. Maximum 1000 documents per batch request.
1 - 1000 elements[
{
"document_id": "doc_123",
"update_data": { "metadata": { "status": "processed" } }
},
{
"document_id": "doc_456",
"update_data": { "metadata": { "status": "archived" } }
}
]OPTIONAL. Filter conditions to match documents for update. Must be used with 'update_data' field. Mutually exclusive with 'updates' array. If provided, applies same update_data to all matching documents.
OPTIONAL. Update data to apply when using filters mode. Must be used with 'filters' field. All matched documents receive the same updates. Can update any document field except vectors.
Successful Response
Response model for batch document update operation.
Provides detailed per-document results showing success/failure for each update.
Total number of documents successfully updated
Total number of documents that failed to update
Detailed per-document results. Each entry shows document_id, success status, and error message (if failed). Empty list when using filter mode (only counts returned).
Summary message of the operation