Zum Hauptinhalt springen
GET
Get all leave types

Autorisierungen

X-API-KEY
string
header
erforderlich

Abfrageparameter

locale
enum<string>
Verfügbare Optionen:
en,
de,
fr,
hu,
it,
pl,
pt,
ru,
es,
tr,
uk

Antwort

Successful response

id
string
erforderlich
name
string
erforderlich

Translated into locale when one is given and a translation exists, otherwise the stored name.

default_name
string
erforderlich

The stored name, without any translation applied.

createdAt
string
erforderlich
updatedAt
string
erforderlich
color
string
erforderlich
icon
string
erforderlich
needs_approval
boolean
erforderlich
deleted
boolean
erforderlich
deleted_at
string | null
erforderlich
deleted_by
object | null
erforderlich
maximum_absent
boolean
erforderlich
leave_unit
enum<string>
erforderlich
Verfügbare Optionen:
days,
half_days,
hours,
minutes_30,
minutes_15,
minutes_10,
minutes_5,
minutes_1
position
number
erforderlich
take_from_allowance
boolean
erforderlich
privacy_hide_leavetype
boolean
erforderlich
outlook_synchronization_show_as
enum<string>
erforderlich
Verfügbare Optionen:
free,
tentative,
busy,
oof,
workingElsewhere,
unknown
outlook_synchronization_subject
string | null
erforderlich
allowance_type
object | null
erforderlich
counts_as_leave
boolean
erforderlich
allow_representative_overlap
boolean
erforderlich
allow_request_changes
boolean
erforderlich

Whether pending and approved requests of this leave type can be changed.

request_shortening_needs_approval
boolean
erforderlich

Shortening an approved request needs approval from its approvers when this is on. Off by default: a shortened request applies at once and the days go back to the allowance. Extending or moving always needs approval. When request_cancellation_needs_approval is on and the leave type needs approval (and the cancellation approval feature is on for the workspace), the requester's own shortening needs approval too, whatever this is set to; the stored value is kept. For admins and managers of the requester, shortening follows this setting alone.

request_cancellation_needs_approval
boolean
erforderlich

A stored setting. It takes effect only when the cancellation approval feature is on for the workspace and the leave type needs approval: then a member who cancels their own approved request (before it starts) asks their approvers instead, and the final approval cancels it. Through the API the requester has to send accepts_cancellation_request: true to POST /requests/{id}/cancel to ask; when nobody other than the requester would have to approve, the request is cancelled at once. An admin, or a manager cancelling for someone in their department, always cancels at once. While it takes effect, the requester's own shortening of an approved request and switch to a leave type without approval need approval too; admins and managers are not affected. Turning it on without the feature is rejected with 403.