Leave types

Get all leave types

Get all leave types

get/leave_types

Request

  • Base URL
    https://api.absentify.com/api/v1
  • URL
    https://api.absentify.com/api/v1/leave_types
  • Auth
    API key in header X-API-KEY

Query parameters

locale'en' | 'de' | 'fr' | 'hu' | 'it' | 'pl' | 'pt' | 'ru' | 'es' | 'tr' | 'uk'

Response

Successful response

idstring required
namestring required

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

default_namestring required

The stored name, without any translation applied.

createdAtstring required
updatedAtstring required
colorstring required
iconstring required
needs_approvalboolean required
deletedboolean required
deleted_atstring nullable required
maximum_absentboolean required
leave_unit'days' | 'half_days' | 'hours' | 'minutes_30' | 'minutes_15' | 'minutes_10' | 'minutes_5' | 'minutes_1' required
positionnumber required
take_from_allowanceboolean required
privacy_hide_leavetypeboolean required
outlook_synchronization_show_as'free' | 'tentative' | 'busy' | 'oof' | 'workingElsewhere' | 'unknown' required
outlook_synchronization_subjectstring nullable required
counts_as_leaveboolean required
allow_representative_overlapboolean required
allow_request_changesboolean required

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

request_shortening_needs_approvalboolean required

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.

Changes