Skip to main content
Version: 5.7.0

SysCancelUserScriptBatchIfExists

Cancels a user script batch, if it exists and is in Scheduled, Queued or Running state. Silently fails, if job does not exist, just returns null and success, instead of an error.

ServiceOperation
scriptSYS_CANCEL_USER_SCRIPT_BATCH_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
}