Bulk Update Documents
Changed onBulk 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.
Request
- Base URL: https://api.mixpeek.com
- URL: https://api.mixpeek.com/v1/collections/{collection_identifier}/documents/bulk
- Auth: HTTP bearer and API key in header X-Namespace
Path parameters
The ID of the collection to update documents in.
Request body
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
Changes
- warning
removed the optional property
from the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- warning
- info
added the new
wordsenum value to the request property////// - info
added the new
wordsenum value to the request property////// - info
added the new
wordsenum value to the request property//////
- info