Skip to main content

Batch Insert Documents

POST 

/collections/:collectionName/documents

Insert one or more documents into the specified collection. Data format is an array of EJSON objects. Supports transaction operations.

Request

Path Parameters

    collectionName stringrequired

    Collection name

Body

required
    data object[]required

    Array of document data (EJSON object format)

    transactionId string

    Transaction ID (optional)

Responses

Documents inserted successfully

Schema
    insertedIds string[]

    List of inserted document IDs

Loading...