ProAbs - Load workflow periods

API Url

Used for loading workflow absence periods of selected workflow.

GET
http://localhost:16010/ProMarkREST/rest/ProAbs/workflows/{id}/periods

Permissions: user

Path parameters

FieldTypeDescription
idNumber

Workflow identifier

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    periodsObject

Collection of workflow absence periods

      absenceHoursNumber

Total absence hours in a period

      fromDate

Period start date

      orderNumber

Period sorting order

      periodIdNumber

Period identifier

      toDate

Period end date

      workflowIdNumber

Workflow identifier

      workHoursNumber

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": {
"periods": [
{
"workflowId": 34079,
"order": 1,
"from": "2018-04-04",
"to": "2018-04-16",
"workHours": 135000,
"absenceHours": 135000,
"periodId": 2153983878
}
]
},
"errorCode": 0,
"errorMessage": ""
}
}