The update command is used to modify a Cron Scheduler job.

JSON Input Data Format
{
    "id": string,
    "name": string,
    "schedule": string,
    "queue": string,
    "bash": boolean,
    "script": string
}
id * Specifies the ID of the Cron Scheduler.
name * Specifies the name for the Cron Scheduler, which can be anything.
schedule * Specifies the cron schedule mask, supporting standard Linux cron syntax. If you need assistance with the mask, you can refer to crontab guru.
queue * Specifies the Event Hub ID where, on the scheduled time, an event will be raised, sending the message {"event": "cron", "name": "cronscheduler_name"}.
bash Specifies whether a custom script will be executed. If set to true, the script specified in the script field will be executed. The default value is false.
script Specifies the path to the script file located on the {ANYNODE}. This field is required if the bash field is set to true.
* 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": "The process was successfully completed"
}

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