v1

latestOpenAPI 3.0.02026-07-1792452.6 KB

Insert Documents

Insert multiple documents into a collection.

post/action/insertMany

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.

documentsobject[] required

A list of documents to insert into the collection.

Response

Inserted

insertedIdsstring[]

A list of the _id values of the inserted documents.

Example response

{
  "insertedIds": [
    "61935189ec53247016a623c9",
    "61935189ec53247016a623ca"
  ]
}