Update Multiple Documents

POST {{URL_ENDPOINT}}/action/updateMany

Using /updateMany, you can update all the documents matching a specific filter specified in the body of the request. Use one of the update operators in the update field to update your documents.

Request Body

{"dataSource"=>"{{DATA_SOURCE}}", "database"=>"{{DATABASE}}", "collection"=>"{{COLLECTION}}", "filter"=>{"age"=>{"$lt"=>40}}, "update"=>{"$set"=>{"age"=>42}}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Access-Control-Request-Headersstring
api-keystring