Authorizations
Bearer token authentication using your API key. Format: 'Bearer your_api_key'. To get an API key, create an account at mixpeek.com/start and generate a key in your account settings.
Headers
REQUIRED: Bearer token authentication using your API key. Format: 'Bearer sk_xxxxxxxxxxxxx'. You can create API keys in the Mixpeek dashboard under Organization Settings.
"Bearer sk_live_abc123def456"
"Bearer sk_test_xyz789"
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'
"ns_abc123def456"
"production"
"my-namespace"
Path Parameters
The ID of the collection to update documents in.
Body
Request model for batch updating multiple documents by explicit IDs or filters.
Supports TWO modes:
- Explicit IDs mode: Provide 'updates' array with document_id + update_data for each
- Filter mode: Provide 'filters' + 'update_data' to update all matching documents
Key difference from BulkUpdateDocumentsRequest:
- Batch (this): Can apply DIFFERENT updates to SPECIFIC documents by ID
- Bulk: Applies SAME update to ALL documents matching filters
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. Represents a logical operation (AND, OR, NOT) on filter conditions.
Allows nesting with a defined depth limit.
Also supports shorthand syntax where field names can be passed directly as key-value pairs for equality filtering (e.g., {"metadata.title": "value"}).
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.
Response
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

