Skip to main content
Version: 5.7.0

SysCancelScheduledScriptIfExists

Cancels a previously scheduled script, if it exists and is still in Scheduled state. Silently fails, if job does not exist, just returns null and success, instead of an error.

ServiceOperation
scriptSYS_CANCEL_SCHEDULED_SCRIPT_IF_EXISTS

Method Parameters

ParameterDescription
jobIdThe id of the job to cancel.

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"data": {
"cancelled": 1
},
"apiCount": 1,
"totalCount": 0,
"status": 200
}