Skip to main content

Execute Database Commands

POST 

/commands

Execute MongoDB native database commands in batch. All commands are executed sequentially and return a corresponding result array. Supports transaction execution.

Only administrators and CloudBase OpenAPI can invoke this endpoint.

Common commands include: find, insert, update, delete, aggregate, createIndexes, etc.

Request

Responses

Commands executed successfully