[]
[
{
"id": 1,
"name": "Swedish employees",
"labor_agreement": {
"working_hours_per_week": "40.0",
"working_weekdays": [0, 1, 2, 3, 4],
"vacation_days_per_year": 25,
"vacation_year_start": "1970-01-01"
},
"long_absence_types": [
{
"id": 17,
"name": "Parental leave"
}
],
"absence_approval_settings": [
{
"id": 51,
"absence_type": "Vacation",
"absence_subtype_id": null,
"absence_subtype_name": null,
"approval_type": "user_approver",
"approver_ids": []
},
{
"id": null,
"absence_type": "SickLeave",
"absence_subtype_id": null,
"absence_subtype_name": null,
"approval_type": "none",
"approver_ids": []
},
{
"id": 52,
"absence_type": "LongAbsence",
"absence_subtype_id": 17,
"absence_subtype_name": "Parental leave",
"approval_type": "custom_set",
"approver_ids": [1789]
}
]
}
]
| Param name | Description |
|---|---|
|
work_time_group
required |
Work-time group parameters. Validations:
|
|
work_time_group[name]
required |
Work-time group name. Must be unique within the company. Validations:
|
|
work_time_group[labor_agreement_attributes]
optional |
Work-time group’s labor agreement. If absent, company’s labor agreement will be used. Validations:
|
|
work_time_group[labor_agreement_attributes][working_hours_per_week]
optional |
N of working hours per week, e.g. Validations:
|
|
work_time_group[labor_agreement_attributes][working_weekdays]
optional |
Working weekdays. 0 - Mon, 1 - Tue, …, 6 - Sun. Default: Validations:
|
|
work_time_group[labor_agreement_attributes][vacation_days_per_year]
optional |
N of vacation days per year, e.g. Validations:
|
|
work_time_group[labor_agreement_attributes][vacation_year_start]
optional |
Vacation year start date. The year component does not matter. E.g. Validations:
|
|
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:
|
|
work_time_group[long_absence_types_attributes][name]
optional |
Long absence type’s name. Must be unique within the work-time group. Validations:
|
|
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:
|
|
work_time_group[absence_approval_settings_attributes][absence_type]
optional |
Absence type. Validations:
|
|
work_time_group[absence_approval_settings_attributes][absence_subtype_id]
optional |
Long absence type ID. Only for Validations:
|
|
work_time_group[absence_approval_settings_attributes][approval_type]
optional |
Approval type. Default: Validations:
|
|
work_time_group[absence_approval_settings_attributes][approver_ids]
optional |
Approver IDs. Only for Validations:
|
| Param name | Description |
|---|---|
|
id
required |
Work-time group ID. Validations:
|
|
work_time_group
required |
Work-time group parameters. Validations:
|
|
work_time_group[name]
required |
Work-time group name. Must be unique within the company. Validations:
|
|
work_time_group[labor_agreement_attributes]
optional |
Work-time group’s labor agreement. If absent, company’s labor agreement will be used. Validations:
|
|
work_time_group[labor_agreement_attributes][working_hours_per_week]
optional |
N of working hours per week, e.g. Validations:
|
|
work_time_group[labor_agreement_attributes][working_weekdays]
optional |
Working weekdays. 0 - Mon, 1 - Tue, …, 6 - Sun. Default: Validations:
|
|
work_time_group[labor_agreement_attributes][vacation_days_per_year]
optional |
N of vacation days per year, e.g. Validations:
|
|
work_time_group[labor_agreement_attributes][vacation_year_start]
optional |
Vacation year start date. The year component does not matter. E.g. Validations:
|
|
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:
|
|
work_time_group[long_absence_types_attributes][name]
optional |
Long absence type’s name. Must be unique within the work-time group. Validations:
|
|
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:
|
|
work_time_group[absence_approval_settings_attributes][absence_type]
optional |
Absence type. Validations:
|
|
work_time_group[absence_approval_settings_attributes][absence_subtype_id]
optional |
Long absence type ID. Only for Validations:
|
|
work_time_group[absence_approval_settings_attributes][approval_type]
optional |
Approval type. Default: Validations:
|
|
work_time_group[absence_approval_settings_attributes][approver_ids]
optional |
Approver IDs. Only for Validations:
|
| Param name | Description |
|---|---|
|
id
required |
Work-time group ID. Validations:
|