ProAbs - Load workflow days
API Url
Used for loading workflow absence day details of the selected proabs-period.
GET
http://localhost:16010/ProMarkREST/rest/ProAbs/workflows/{id}/periods/{periodId}/details
Permissions: user
Path parameters
| Field | Type | Description |
|---|---|---|
| id | Number | Workflow identifier |
| periodId | Number | Period identifier |
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
| details | Object | Collection of workflow absence period details |
absenceHoursoptional | Number | Total absence hours in a period |
| date | Date | Date |
| order | Number | Absence days sorting order |
reasonCodeoptional | String | Absence reason code |
reasonDescroptional | String | Absence reason description |
reasonTypeoptional | String | Absence reason type |
workHoursoptional | Number | Total working hours in a period |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
Response example:
{"response": {"data": {"details": [{"date": "2018-04-04","order": 1,"workHours": 27000,"absenceHours": 27000,"reasonType": "AA","reasonCode": "S","reasonDescr": "Sick"},{"date": "2018-04-05","order": 2}]},"errorCode": 0,"errorMessage": ""}}