Skip to content

List holiday types

GET
/v1/reference/holiday-types
curl --request GET \
--url https://api2.recruso.co.uk/v1/reference/holiday-types \
--header 'Authorization: <Authorization>'

Returns every holiday type the platform publishes. The kind of holiday a worker can book. Recruso supports a full day and a half day.

These values are platform-wide: every agency sees the same list and the same ids, and your agency cannot add to them or change them. No endpoint published on this API takes a holiday type id yet; the vocabulary is published so that its values are enumerable.

The list is not paged, and no order is guaranteed — sort client-side if you need one. The values change very rarely, so cache them rather than fetching them before every call.

Access. Requires an authenticated token. No further policy is applied.

OK

Media typeapplication/json

Every holiday type the platform publishes.

object
holidayTypes
required

The holiday types. Never null.

Array<object>

One holiday type in a list.

object
id

The holiday type’s identifier. Stable and platform-wide — the same id means the same thing for every agency.

integer format: int16
name

The holiday type name, as it appears in Recruso. Up to 20 characters.

string
Example
{
"holidayTypes": [
{
"id": 1,
"name": "Annual Leave"
}
]
}

Unauthorized

Media typeapplication/problem+json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}