Skip to content

List sick leave registrations

Request

Requires scope: absence.

Returns a list of sick leave registrations.

Security
apiKey(Required scopes: absence)
Query
startDatestring(Date)

List sick leave registrations that end after this date.

Example:startDate=2026-12-31
endDatestring(Date)

List sick leave registrations starting before this date.

Example:endDate=2026-12-31
officeSlugstring

The office name the employee has a contract in.

Example:officeSlug=harborview-grand-hotel
contractGroupLabelstring

The contract type name the employee has a contract in.

Example:contractGroupLabel=hospitality-permanent
sortFieldstring

The field to sort the result by. For now this only accepts "startDate".

Example:sortField=startDate
sortOrderstring

In which direction to sort the results. only allowed values are desc (descending) and asc (ascending).

Enum:"asc""desc"
Example:sortOrder=desc
pageinteger, >= 1

Page number of the paginated result set. The first page is 1.

Default:1
curl -i -X GET \
  'https://beta-developer.dyflexis.com/_mock/openapi/api/absence/v3/sick-leave?startDate=2026-12-31&endDate=2026-12-31&officeSlug=harborview-grand-hotel&contractGroupLabel=hospitality-permanent&sortField=startDate&sortOrder=desc&page=1' \
  -H 'Authorization: YOUR_API_KEY_HERE'

Responses

OK

Bodyapplication/json
pageCountinteger

Number of pages.

Example:100
sickLeaveRegistrationsArray of objects
Response
{ "_links": { "self": {}, "next": {}, "prev": {}, "first": {}, "last": {} }, "pageCount": 100, "sickLeaveRegistrations": [ {} ] }