GetEmployeeActivities RESTified API
Resource URL Summary
Pass Through Call to ServiceScheduling's "Get Employee Activities" API
PUT /up/v5/rest/scheduling/GetActs
HTTP Headers
This API uses the standard ServiceBroker HTTP Headers.
API Specifics
Pass Through Call to ServiceScheduling's "Get Employee Activities" API
This RESTified API will perform a pass-through call to the ServiceScheduling sub-system's "Get Employee Activities" API (when configured).
URL
PUT /up/v5/rest/scheduling/GetActs
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 ServiceScheduling "Get Employee Activities" APi.
GetEmployeeActivities Object Format
GetEmployeeActivities Object Properties (Bold property names indicate the field is required)
Property | Type | Length | Description | Req? | Mapping Field: Service Scheduling |
---|---|---|---|---|---|
Tech |
| SS: 25 | Pass through parameter to the ServiceScheduling "Get Employee Activities" API. An employee ID must be supplied if the ActNo is missing. Mandatory if ActNo not supplied. Otherwise optional. | No |
|
Date |
| SS: 8 | Pass through parameter to the ServiceScheduling "Get Employee Activities" API. The date for which the activities are required. Mandatory if EmpId is supplied. Otherwise optional. Example: "2023-03-30" | Yes |
|
ActNo |
SS: ActNo (unsigned integer) | SS: max 999999999 | Pass through parameter to the ServiceScheduling "Get Employee Activities" API. An ActNo must be supplied if the EmpID is missing. Mandatory if EmpId not supplied. Otherwise optional. | No |
|
PreAct | unsigned integer | Pass through parameter to the ServiceScheduling "Get Employee Activities" API. The start point for each batch; omit for 1st batch or for all. | No |
| |
ActCount | unsigned integer | Pass through parameter to the ServiceScheduling "Get Employee Activities" API. The number of activities to be returned in each batch, omit for all. | No |
|
HTTP Response
Success
On success, a JSON-formatted version of the ServiceScheduling "Get Employee Activities" API response will be returned.
{ "Success": true, "Code": "0", "Message": "", "Payload": { "result": { "type": "OK", "code": "0" }, "OffsetId": "PreAct", "OffsetCount": "ActCount", "Acts": [ {Acts} ] } }
Error
On error, a JSON-formatted version of the ServiceScheduling "Get Employee Activities" 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 ServiceScheduling Error codes, the possible Return Codes from this API are: