Skip to main content

Cancel a Job Group

Method to cancel all jobs in a JobGroup.

Query String Parameters

NameTypeDescriptionRequired
ActionStringJobGroupCancelRequired
JobGroupIdIntId of Job Group to be cancelled. See Note.Required
JobGroupReferenceStringReference of Job Group to be cancelled. See Note.Required
CancelReasonString(50)Reason for cancelling jobs. Defaults to Cancelled by API user: {username}.Optional
KeepRecordBoolRetain a copy of the job as 'cancelled'. Defaults to true.Optional
ExcludeJobTypeIdsIntComma separated list of job type Ids to exclude.Optional

note
Either the JobGroup Reference or JobGroup ID can be supplied. If both parameters are provided, the JobGroup ID will take precedence.

Response Codes

CodeMessageInformation
2$Invalid Parameter - excludeJobTypeIds: All Values must be numeric({queryString[excludeJobTypeIds]}
2$Invalid Parameter - excludeJobTypeIds: ({string.Join(
2Missing parameter - jobGroupId or jobGroupReference
2Invalid Parameter - jobGroupId
2Cannot find jobGroup

Example

Request URL

https://webservice.bigchange.com/v01/services.ashx?action=jobgroupcancel