Pass Through Call to ServiceScheduling's "Cancel Job" APIThis RESTified API will perform a pass-through call to the ServiceScheduling sub-system's "Cancel Job" API (when configured). URL Panel |
---|
borderColor | grey |
---|
bgColor | whitesmoke |
---|
borderStyle | solid |
---|
| PUT /up/v5/rest/scheduling/CancelJob
|
HTTP Request BodyThis request requires a JSON object supplied in the HTTP request body, which defines the parameters that will be passed through to the ServiceScheduling "Cancel Job" APi. Code Block |
---|
language | js |
---|
title | CancelJob JSON |
---|
collapse | true |
---|
| {
"Id": "Dep-1306",
"CancelReason": {
"cancelReasonId": 1,
"cancelReasonDesc": ""
}
} |
CancelJob Object Properties (Bold property names indicate the field is required)Property | Type | Length | Description | Req? | Mapping Field: Service Scheduling |
---|
Id |
string SS: JobID () | SS: 50 | Pass through parameter to | the ServiceScheduling "Cancel Job" APIthe ServiceScheduling Cancel Job API. | Yes | SS Field: Yes | CancelReason | object |
| Pass through parameter to | the ServiceScheduling "the ServiceScheduling Cancel Dependency Group | Jobs" SS Field: cancelReason Property | Type | Length | Description | Req? |
---|
CancelReasonId | string SS: CancelReasonId (integer) | Cancellation reason ID SS Field: cancelReason.cancelReasonId | No | CancelReasonDesc | string SS: CancelDescriptionStr (string) | SS: 500 | Free-form text reason for cancellation SS Field: cancelReason.cancelDescription | No | No Info |
---|
Cancellation reason details were added to the ServiceScheduling "Cancel Job" API in version 11.3. When cancellation reason details are provided in a call to the ServiceBroker CancelJob RESTified API endpoint, and the ServiceScheduling version in use is prior to 11.3, the cancellation details will not be passed through to the underlying ServiceScheduling instance. |
HTTP ResponseSuccessOn success, a JSON-formatted version of the ServiceScheduling "Cancel Job" API response will be returned. Code Block |
---|
| {
"Success": true,
"Code": "0",
"Message": "",
"Payload": {
"result": {
"type": "OK",
"code": "0"
}
}
} |
Error On error, a JSON-formatted version of the ServiceScheduling "Cancel Job" API response will be returned. Code Block |
---|
| {
"Success": false,
"Code": 9,
"Payload": {
"returnCode": {
"type": "Error",
"code": "SCH Error Code"
}
}
} |
Return CodesIn addition to the Standard Return Codes, the possible Return Codes from this API are: Expand |
---|
SP_OK (0) SP_JOBID_INVALID (1)
|
|