The update-record command is used to update a record in 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: { "collection": "contacts", "record": { "name": "Johnathan", "age": 32, "insured": true, "newfield": "has a new car" }, "cid": 0 }

* 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 updated in collection contacts in database mydb01"
    }

Failed Response

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