DB.INSERT
POST
To insert one or multiple documents in a collection
Request
- application/json
Body
- DB_INSERT_ONE_SCHEMA
- DB_INSERT_MANY_SCHEMA
oneOf
action stringrequired
Default value: db.insert
The action name
collection stringrequired
The collection name
data objectrequired
The object for a single data entry
captcha string
A captcha code to be passed if inserting anonymous
action stringrequired
Default value: db.insert
The action
collection stringrequired
The collection name
data object[]required
Array of multiple objects to insert
captcha string
A captcha code to be passed if inserting anonymous
Responses
- 200
Mutation response
- application/json
- Schema
- Example (from schema)
Schema
data object[]
Array of documents mutated
{
"data": [
{}
]
}
Loading...