v1
latestOpenAPI 3.0.02026-07-1792452.6 KBUpdate One Document
Update a single document in a collection.
Request body
The name of a linked MongoDB Atlas data source. This is commonly "mongodb-atlas" though it may be different in your App if you chose a different name when you created the data source.
The name of a database in the specified data source.
The name of a collection in the specified database.
A MongoDB query filter that matches documents. For a list of all query operators that the Data API supports, see Query Operators.
A MongoDB update expression to apply to matching documents. For a list of all update operators that the Data API supports, see Update Operators.
When true, if the update filter does not match any existing documents, then insert a new document based on the filter and the specified update operation.
Response
Updated
The number of documents matched by the query filter.
The number of matched documents that were modified.
The _id value of the upserted document.