Pass Through Call to ServiceSchedulingScheduling's "Get Responsibility Units" APIThis RESTified API will perform a pass-through call to the ServiceScheduling subScheduling sub-system's "Get Responsibility Units" API (when configured). URL Panel |
---|
borderColor | grey |
---|
bgColor | whitesmoke |
---|
borderStyle | solid |
---|
| PUT /up/v5/rest/scheduling/GetRespUnits
|
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 the Scheduling "Get Responsibility Units" APi. Code Block |
---|
language | js |
---|
title | GetResponsibilityUnits JSON |
---|
collapse | true |
---|
| {
"FRU": "ParentRespUnit",
"OffsetId": "PrevRespUnit",
"Options": {
"FRUCount": 1
}
} |
GetResponsibilityUnits Object Properties (bold property names indicate required field)Property | Type | Length | Description | Req? | Mapping Field: Service Scheduling |
---|
FRU string | SS: Unit (string )
| SS: 9 | Pass through parameter to the ServiceScheduling "the Scheduling Get Responsibility Units" API API. If this is not supplied, all Final Responsibility Units (FRUs) will be returned; if this is the ID of an FRU, all its constituent IRUs will be returned. | Yes | SS Field: ParentRespUnit | Yes | OffsetUd | string
| SS: Unit (string)SS: 9 | Pass through parameter to the ServiceScheduling "the Scheduling Get Responsibility Units" API API. Is the start point for each batch; it should not be set for the first batch. | Yes | SS Field: PrevRespUnit Yes | Options | object | Property | Type | Description |
---|
FRUCount | integer
| Pass through parameter to the ServiceScheduling "the Scheduling Get Responsibility Units " API API. The number of Responsibility Units which will be returned in each batch if you wish to impose a limit. Leave unset if no limit is to be applied. SS Field: options.RespUnitCount | NoNo | see: GetResponsibilty.Options.Objects |
HTTP Response SuccessOn success, a JSON-formatted version of the ServiceScheduling Scheduling "Get Responsibility Units" API response will be returned. Code Block |
---|
| {
"Success": true,
"Code": "0",
"Message": "",
"Payload": {
"result": {
"type": "OK",
"code": "0"
},
"OffsetId": "PrevRespUnit",
"OffsetCount": "RespUnitCount",
"FRUs": [
{FRU}
]
}
} |
Error On error, a JSON-formatted version of the ServiceScheduling Scheduling "Get Responsibility Units" API response will be returned. Code Block |
---|
| {
"Success": false,
"Code": 9,
"Payload": {
"returnCode": {
"type": "Error",
"code": "SCH Error Code"
}
}
} |
Return CodesIn addition to to the Standard Return Codes, and the general ServiceScheduling Return Codes, the specfic ones for Scheduling API return codes, the possible Return Codes from this API are: Expand |
---|
SP_OK (0) SP_UNIT_INVALID (28)
|
|