GetEmployeeJobs RESTified API
Resource URL Summary
Pass Through Call to Scheduling's "Get Employee Jobs" API
PUT /up/v5/rest/scheduling/GetJobs
HTTP Headers
This API uses the standard ServiceBroker HTTP Headers.
API Specifics
Pass Through Call to Scheduling's "Get Employee Jobs" API
This RESTified API will perform a pass-through call to the Scheduling sub-system's "Get Employee Jobs" API (when configured).
URL
PUT /up/v5/rest/scheduling/GetJobs
HTTP Request Body
This request requires a JSON object supplied in the HTTP request body, which defines the parameters that will be passed through to the Scheduling "Get Employee Jobs" APi.
GetEmployeeJobs Object Format
GetEmployeeJobs Object Properties (Bold property names indicate the field is required)
Property | Type | Type | Description | Req? | Field Mapping: Scheduling |
---|---|---|---|---|---|
Tech |
| SS: 25 | Pass through parameter to the Scheduling "Get Employee Jobs" API. The identifier of the employee whose list of jobs is to be extracted; Mandatory if RespUnit not supplied. Otherwise optional. | Yes | E |
DispatchDate |
| SS: 8 | Pass through parameter to the Scheduling "Get Employee Jobs" API. The date on which the jobs are to be carried out. Example: "2023-03-30" | Yes | D |
FRU |
| SS: 9 | Pass through parameter to the Scheduling "Get Employee Jobs" API. The FRU for which unresourced jobs are to be extracted. If EmpID is supplied as well as RespUnit, EmpID is ignored. Mandatory if EmpID and Dispatch Date not supplied. Otherwise optional | Yes | R |
Options | object | Pass through parameter to the Scheduling GetEmployeeJobs API. | No | ||
DispatchInfoCount | integer | A non-zero value should be supplied if Dispatch info is wanted | No | DispatchInfoCount | |
AuditInfoCount | integer | A non-zero value should be supplied if Audit info is wanted | No | AuditInfoCount | |
CustomerInfoCount | integer | A non-zero value should be supplied if Customer info is wanted | No | CustomerInfoCount | |
SparesInfoCount | integer | A non-zero value should be supplied if Spares info is wanted | No | SparesInfoCount | |
VirtualWorkDLInfo | boolean | When set to | No | VirtualWorkDLInfo |
HTTP Response
Success
On success, a JSON-formatted version of the Scheduling "Get Employee Jobs" API response will be returned.
{ "Success": true, "Code": "0", "Message": "", "Payload": { "result": { "type": "OK", "code": "0" }, "OffsetId": "JobID", "OffsetCount": "JobCount", "WorkItems": [ {WorkItem CDM} ] } }
Error
On error, a JSON-formatted version of the Scheduling "Get Employee Jobs" API response will be returned.
{ "Success": false, "Code": 9, "Payload": { "returnCode": { "type": "Error", "code": "SCH Error Code" } } }
Return Codes
In addition to the Standard Return Codes, and the Scheduling API return codes, the possible Return Codes from this API are: