v1

latestOpenAPI 3.0.02026-07-1792452.6 KB

Insert One Document

Insert a single document into a collection.

post/action/insertOne

Request body

dataSourcestring required

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.

databasestring required

The name of a database in the specified data source.

collectionstring required

The name of a collection in the specified database.

documentobject required

A document to insert into the collection.

Response

Inserted

insertedIdstring

The _id value of the inserted document.