Params

Param name Description
id
required

Work-time group ID.

Validations:

  • Must be a Integer

work_time_group
required

Work-time group parameters.

Validations:

  • Must be a Hash

work_time_group[name]
required

Work-time group name. Must be unique within the company.

Validations:

  • Must be a String

work_time_group[hide_flex_time]
optional

Hide flex time. The total flex balance will be 0

Validations:

  • Must be one of: true, false, 1, 0.

work_time_group[labor_agreement_attributes]
optional

Work-time group’s labor agreement. If absent, company’s labor agreement will be used.

Validations:

  • Must be a Hash

work_time_group[labor_agreement_attributes][working_hours_per_week]
optional

N of working hours per week, e.g. 37.5.

Validations:

  • Must be a Float

work_time_group[labor_agreement_attributes][working_weekdays]
optional

Working weekdays. 0 - Mon, 1 - Tue, …, 6 - Sun. Default: [0, 1, 2, 3, 4] (meaning Mon-Fri).

Validations:

  • Must be one of: 0, 1, 2, 3, 4, 5, 6.

work_time_group[labor_agreement_attributes][vacation_days_per_year]
optional

N of vacation days per year, e.g. 25.

Validations:

  • Must be a Integer

work_time_group[long_absence_types_attributes]
optional

Work-time group’s long absence types. There is no fallback to company’s long absence types.

Validations:

  • Must be an Array of nested elements

work_time_group[long_absence_types_attributes][name]
optional

Long absence type’s name. Must be unique within the work-time group.

Validations:

  • Must be a String

work_time_group[long_absence_types_attributes][separate_saldo]
optional

Separate saldo will be calculated for this absence type, based on Compensation Time in user settings.

Validations:

  • Must be one of: true, false, 1, 0.

work_time_group[long_absence_types_attributes][flex_leave]
optional

Flex-leave absence type. Counted as informational; does not reduce mandatory work time and is excluded from payroll.

Validations:

  • Must be one of: true, false, 1, 0.

work_time_group[absence_approval_settings_attributes]
optional

Work-time group’s absence approval settings. Must be configured for Vacations/Sick leaves for the corresponding absence types to be created successfully. There is no fallback to company’s absence approval settings.

Validations:

  • Must be an Array of nested elements

work_time_group[absence_approval_settings_attributes][absence_type]
optional

Absence type.

Validations:

  • Must be one of: Vacation, SickLeave, LongAbsence.

work_time_group[absence_approval_settings_attributes][absence_subtype_id]
optional

Long absence type ID. Only for absence_type LongAbsence.

Validations:

  • Must be a Integer

work_time_group[absence_approval_settings_attributes][approval_type]
optional

Approval type. Default: none.

Validations:

  • Must be one of: none, user_approver, custom_set.

work_time_group[absence_approval_settings_attributes][approver_ids]
optional

Approver IDs. Only for approval_type custom_set.

Validations:

  • Must be an array of Integer