Skip to content

[EXPERIMENTAL] Get all Employee Unavailabilities by Employee id

Request

Get all Employee Unavailabilities by Employee id. When a from and until are provided, we match any Unavailabilities that overlap with this range.

Security
clientCredentials
Path
employee_idstring^[a-zA-Z0-9.~\-_]{1,512}$required

A unique identifier of an Employee. Should only contain characters which do not need URL encoding.

Query
fromstring, (date-time)
Example:from=2021-01-01T10:15:30Z
untilstring, (date-time)
Example:until=2021-01-05T10:15:30Z
Payload
// No request payload

Responses

Employee Unavailabilities are retrieved

Bodyapplication/json
Array [
idstringread-only

The unique Unavailability ID.

Example:"f22896d0-ed42-4a14-a935-7a29072bc5ac"
employee_idstring(EmployeeId)^[a-zA-Z0-9.~\-_]+$read-only

The unique Employee ID.

Example:"employee-42"
fromstring, (date-time)required
Example:"2021-01-01T06:00:00Z"
tostring, (date-time)required
Example:"2021-01-10T06:00:00Z"
descriptionstring
Example:"holiday"
versioninteger(Version)

Version of the entity, can be used for optimistic locking.

Example:42
]
Response
[ { "id": "f22896d0-ed42-4a14-a935-7a29072bc5ac", "employee_id": "employee-42", "from": "2021-01-01T06:00:00Z", "to": "2021-01-10T06:00:00Z", "description": "holiday", "version": 42 } ]