Updating absences reported to payroll is not allowed.
Updating an (un)approved absence will return it back to pending state.
| Param name | Description |
|---|---|
|
id
required |
Absence ID Validations:
|
|
absence
required |
Absence parameters. Validations:
|
|
absence[type]
required |
Absence type. Option 1: one of Validations:
|
|
absence[subtype_id]
optional |
Only for Validations:
|
|
absence[user_id]
optional |
User ID. By default, current user’s ID is used. Validations:
|
|
absence[start_date]
required |
Absence’s start date. E.g. Validations:
|
|
absence[end_date]
required |
Absence’s end date. E.g. Validations:
|
|
absence[description]
optional |
Absence’s description. Maximum length: 300 characters. Validations:
|
|
absence[start_time]
optional |
Absence’s start time, in case the first day is less than a day long. In UTC. E.g., Validations:
|
|
absence[end_time]
optional |
Absence’s end time, in case the last day is less than a day long. In UTC. E.g., Validations:
|
|
absence[sickness_id]
optional |
Only for Validations:
|
|
absence[external_id]
optional |
Absence’s ID in an external service. Validations:
|