v2/absence_reasons

Create a new absence reason.

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 a shyftplan account.

string
required

Name of the absence reason.

string
enum
required

Type of the 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.

Allowed:
string
enum
required
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.

Allowed:
string
length ≤ 3

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

float

Default entitlement (for new employments) in days for the absence reason.

Required for an absence reason of type with_entitlement. For an absence reason of type time_account or without_entitlement, you must eiter omit the parameter completely, or set the value to an empty string or null.

boolean
Defaults to false

Determines whether employments can use remaining days of entitlement for an absence reason in the subsequent year (true).

Must be true if you want to set absence_reason_carry_over_date. Must be false, if you want to change the absence-reason type to without_entitlement or time_account.

string

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

string
enum

Absence hours calculation type.

Allowed:
boolean
Defaults to false

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

boolean
Defaults to true

Allow employees to manage their own time-account 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.

string
enum
Defaults to all_users

Group with access to the absence reason.

Allowed:
boolean
Defaults to false

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

Responses

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