v2/absence_reasons/{id}

Update existing absence reason.

Path Params
int32
required

Absence Reason ID.

Body Params
string
required

This is a testing sandbox. We advise against using credentials for production accounts here.

E-mail address of the API user.

string
required

This is a testing sandbox. We advise against using credentials for production accounts here.

Authentication token - can be fetched by login action.

int32
required
≥ 1

ID of the shyftplan account.

string

Name of the absence reason.

string

Type of an absence reason.

    Available options:
  • time_account: External (managed outside shyftplan) time account absence reason type.
  • with_entitlement: Reason type for absences with a yearly entitlement per employee. Deductions from this entitlement are performed inside shyftplan.
  • without_entitlement: Reason type for absences with no fixed maximum entitlement per employee. Typical example of an absence reason with this type: Sickness.

string
Defaults to standard

Calculation method for the (days and hours) value of absences of an absence reason. For a limited time only, this determines only the calculation method for the absence days, while the hours are calculated according to a separate parameter.

string
length ≤ 3

Abbreviation for the absence reason (for display purposes in shyftplan).

float

Default entitlement in days for the absence reason. Must be empty or null for an absence reason of type time_account.

boolean
Defaults to false

Can remaining days of the absence entitlement for an absence reason be transferred to the subsequent year?

string

Expiration date of carry over absence days. Format: DD.MM

string

Absence hours calculation type.

boolean
Defaults to false

Can an attachment file be uploaded for absences of an absence reason?

boolean

Can employees manage their own time-account absences for the absence reason?

int32

The lower limit (in minutes) for the balance of a time-account absence reason of an employee.

int32

The lower warning threshold (in minutes) for the balance of a time-account absence reason of an employee.

int32

The upper warning threshold (in minutes) for the balance of a time-account absence reason of an employee.

int32

The upper limit threshold (in minutes) for the balance of a time-account absence reason of an employee.

boolean
Defaults to false

Update the upper/lower warnings/limits in all employment time accounts accordingly?

string
Defaults to all_users

Group with access to the absence reason.

boolean
Defaults to false

Are emloyees allowed to edit days and hours of absences for this reason?

Responses

Language
Click Try It! to start a request and see the response here! Or choose an example:
application/json