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

FieldTypeDescription
idNumber

Workflow identifier

periodIdNumber

Period identifier

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    detailsObject

Collection of workflow absence period details

      absenceHoursoptionalNumber

Total absence hours in a period

      dateDate

Date

      orderNumber

Absence days sorting order

      reasonCodeoptionalString

Absence reason code

      reasonDescroptionalString

Absence reason description

      reasonTypeoptionalString

Absence reason type

      workHoursoptionalNumber

Total working hours in a period

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"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": ""
}
}