Updating absences reported to payroll is not allowed.
Updating an (un)approved absence will return it back to pending state.

Params

Param name Description
id
required

Absence ID

Validations:

  • Must be a Integer

absence
required

Absence parameters.

Validations:

  • Must be a Hash

absence[type]
required

Absence type. Option 1: one of Vacation, SickLeave, LongAbsence; subtype_id is required for LongAbsence type. Option 2: for Long absences, can contain the name of long absence type instead; then subtype_id is not required.

Validations:

  • Must be a String

absence[subtype_id]
optional

Only for LongAbsence type. ID of one of company’s long absence types.

Validations:

  • Must be a Integer

absence[user_id]
optional

User ID. By default, current user’s ID is used.

Validations:

  • Must be a Integer

absence[start_date]
required

Absence’s start date. E.g. 2025-12-01.

Validations:

  • Must be a String

absence[end_date]
required

Absence’s end date. E.g. 2025-12-31.

Validations:

  • Must be a String

absence[description]
optional

Absence’s description. Maximum length: 300 characters.

Validations:

  • Must be a String

absence[start_time]
optional

Absence’s start time, in case the first day is less than a day long. In UTC. E.g., 13:00.

Validations:

  • Must be a String

absence[end_time]
optional

Absence’s end time, in case the last day is less than a day long. In UTC. E.g., 13:00.

Validations:

  • Must be a String

absence[sickness_id]
optional

Only for SickLeave type. Sickness ID that would allow to identify whether several sick leaves were due to the same sickness.

Validations:

  • Must be a String

absence[external_id]
optional

Absence’s ID in an external service.

Validations:

  • Must be a String