The insert-record command is used to insert a new record into a collection.

JSON Input Data Format
{
    "id": string,
    "postdata": string
}
id * Specifies the ID of the Serverless.
postdata * Specifies the JSON input data for the record. For example:
* Indicates a mandatory field.

Code Snippets
Here are several code snippets provided for your direct use. Simply select your preferred tool/language by clicking on it.


Successful Response
{
    "result": "OK",
    "payload": "Record was saved to collection contacts in database mydb01"
}

Failed Response
{
    "result": "ERR",
    "message": "Error message ..."
}