The test-function command is used to post input JSON data and test the function.

JSON Input Data Format
{
    "id": string,
    "postdata": string
}
id * Specifies the ID of the Serverless.
postdata * Specifies the input data in JSON format.
* 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": "{\"statusCode\": 200, \"body\": \"Validating your flow... }"
}

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