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.
Path parameters
The ID of the collection to update documents in.
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
Changed in 3 of the 30 revisions of this API.213
- ▲
the response property
updated_countbecame optional for the status200response-property-became-optional
- ▲
response property
updated_countlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ○
added the optional property
statusto the response with the200statusresponse-optional-property-added
- ○
added the optional property
task_idto the response with the200statusresponse-optional-property-added
- ○
the
messageresponse's property default value changed fromDocuments updated successfullytoBulk update enqueuedfor the status200response-property-default-value-changed
- ▲
- ○
the endpoint scheme security
BearerAuth AND NamespaceHeaderwas added to the APIapi-security-added
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
added the new
geo_bounding_boxenum value to the request propertyfilters/anyOf[subschema #1: LogicalOperator]/AND/anyOf[subschema #1]/items/anyOf[subschema #2: FilterCondition]/operatorrequest-property-enum-value-added
- ○
added the new
geo_bounding_boxenum value to the request propertyfilters/anyOf[subschema #1: LogicalOperator]/NOT/anyOf[subschema #1]/items/anyOf[subschema #2: FilterCondition]/operatorrequest-property-enum-value-added
- ○
added the new
geo_bounding_boxenum value to the request propertyfilters/anyOf[subschema #1: LogicalOperator]/OR/anyOf[subschema #1]/items/anyOf[subschema #2: FilterCondition]/operatorrequest-property-enum-value-added
- ○
added the new
geo_polygonenum value to the request propertyfilters/anyOf[subschema #1: LogicalOperator]/AND/anyOf[subschema #1]/items/anyOf[subschema #2: FilterCondition]/operatorrequest-property-enum-value-added
- ○
added the new
geo_polygonenum value to the request propertyfilters/anyOf[subschema #1: LogicalOperator]/NOT/anyOf[subschema #1]/items/anyOf[subschema #2: FilterCondition]/operatorrequest-property-enum-value-added
- ○
added the new
geo_polygonenum value to the request propertyfilters/anyOf[subschema #1: LogicalOperator]/OR/anyOf[subschema #1]/items/anyOf[subschema #2: FilterCondition]/operatorrequest-property-enum-value-added
- ○
added the new
geo_radiusenum value to the request propertyfilters/anyOf[subschema #1: LogicalOperator]/AND/anyOf[subschema #1]/items/anyOf[subschema #2: FilterCondition]/operatorrequest-property-enum-value-added
- ○
added the new
geo_radiusenum value to the request propertyfilters/anyOf[subschema #1: LogicalOperator]/NOT/anyOf[subschema #1]/items/anyOf[subschema #2: FilterCondition]/operatorrequest-property-enum-value-added
- ○
added the new
geo_radiusenum value to the request propertyfilters/anyOf[subschema #1: LogicalOperator]/OR/anyOf[subschema #1]/items/anyOf[subschema #2: FilterCondition]/operatorrequest-property-enum-value-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○