Replace
Replace document by specified filter or Id.
Last updated
Was this helpful?
Replace document by specified filter or Id.
Last updated
Was this helpful?
Replace the entire document with a new one. When you want to update the document, and you don't know which part will be updated each time, you can update that document by replacing it entirely.
Replace the entire document with a new one. When you want to update the document, and you don't know which part will be updated each time, you can update that document by replacing it entirely. https://docs.codemash.io/api/database/collections/replace
/{version}/db/{CollectionName}/replaceOne
Collection name - unique, lowercased, collection name without whitespace. E.g., if your collection title you have entered in the CodeMash dashboard is "Business Trips" then collection name would be "business-trips".
The CodeMash API version used to fetch data from the API. If not specified, the last version will be used. E.g.: v2
Accept Header
API key of your cluster. Can be passed in a header as X-CM-Cluster.
ID of your project. Can be passed in a header as X-CM-ProjectId.
Specify culture code when your response from the API should be localised. E.g.: en