Download OpenAPI specification:
The operations of the leave package, merged into the published contract when the package is installed (see WebVision\Adsum\Core\Shared\Api\Contract\OpenApiDocument). Linted on its own.
Sort allow-list: name, category.
| page | integer >= 1 Default: 1 |
| perPage | integer [ 1 .. 200 ] Default: 50 |
| sort | string Examples: sort=-startDate,employee Comma-separated property names; a leading "-" sorts descending. |
| category | string (AbsenceCategory) Enum: "vacation" "specialLeave" "unpaid" "timeOffInLieu" "sickness" "childSickness" "parental" "education" "compensatoryLeave" Category of an absence, shared by leave, calendar, time tracking and reporting. |
| active | boolean |
| eligibleForMe | boolean Only active types whose eligibility conditions hold for the caller today. |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "names": {
- "en": "string",
- "de": "string"
}, - "colour": "string",
- "icon": "string",
- "category": "vacation",
- "creditsWorkingTime": true,
- "consumes": "leaveLedger",
- "halfDaysAllowed": true,
- "carriesStatutoryMinimum": true,
- "quotaPerOccasionDays": 1.5,
- "maxNegativeBalanceDays": 0,
- "attachmentRequirement": {
- "mode": "none",
- "afterDays": 1
}, - "certificateRequiredFromDay": 1,
- "eligibilityConditions": [
- {
- "kind": "minTenureMonths",
- "parameters": {
- "months": 12
}
}
], - "active": true,
- "payrollClass": "paid",
- "payrollPercentage": 1,
- "countingBasis": "workingDays",
- "encashmentRule": "never",
- "hourlyRequestsAllowed": false,
- "workingAbsence": false,
- "contingentAmount": 1,
- "contingentUnit": "days",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "approvalRequired": true
}
], - "meta": {
- "page": 1,
- "perPage": 1,
- "totalItems": 0,
- "facets": {
- "property1": {
- "property1": 1,
- "property2": 1
}, - "property2": {
- "property1": 1,
- "property2": 1
}
}, - "groupBy": "string",
- "groups": [
- {
- "key": "string",
- "label": "string",
- "count": 1
}
]
}
}| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| Idempotency-Key | string <uuid> Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 ( |
required | object (LocalisedText) non-empty Names per language; unique per company and language, case-insensitive. Responses also carry the resolved |
| colour required | string^#[0-9a-fA-F]{6}$ |
| icon required | string <= 50 characters |
| category required | string (AbsenceCategory) Enum: "vacation" "specialLeave" "unpaid" "timeOffInLieu" "sickness" "childSickness" "parental" "education" "compensatoryLeave" Category of an absence, shared by leave, calendar, time tracking and reporting. |
| creditsWorkingTime | boolean Whether absences of this type are credited as working time when the company uses the absence accounting timeCredit. Defaults by category; always false for timeOffInLieu. |
| consumes required | string (LeaveConsumption) Enum: "leaveLedger" "workingTimeAccount" "nothing" What taking this leave consumes. Only vacation consumes the leave ledger, only timeOffInLieu the working-time account. |
| halfDaysAllowed required | boolean |
| carriesStatutoryMinimum | boolean Marks the vacation type that carries the statutory minimum. At most one per company. |
Days (number) or null | |
| maxNegativeBalanceDays | number multiple of 0.5 >= 0 Default: 0 A quantity of leave days in half-day steps. |
required | object (AttachmentRequirement) |
| certificateRequiredFromDay | integer or null >= 1 Sickness types only: overrides the company default. |
required | Array of objects (EligibilityCondition) |
| active required | boolean |
| payrollClass required | string Enum: "paid" "unpaid" "partial" Payroll classification, owned by the leave type; reporting only maps leave types to wage-type codes. No effect on balances. |
| payrollPercentage | integer or null [ 1 .. 99 ] Required for partial, forbidden otherwise. |
| countingBasis | string Default: "workingDays" Enum: "workingDays" "workingDaysIncludingHolidays" "calendarDays" Which dates a request of the type counts. workingDays counts scheduled working days only; workingDaysIncludingHolidays also public holidays on a scheduled working day; calendarDays every date, without half days and never with a policy in hours. The attendance target of a counted holiday or day off stays 0. |
| encashmentRule | string Default: "never" Enum: "never" "onExitOnly" "aboveStatutoryMinimum" "any" When the balance may be paid out; only for types that consume the leave ledger, and never |
| hourlyRequestsAllowed | boolean Default: false Whether employees request the type by the hour. Only with countingBasis workingDays, and for a type consuming the leave ledger only while all its policies use unit hours. |
| workingAbsence | boolean Default: false Whether the employee works on an absence of this type, such as a code sprint, a business trip or a training. Only for a type that credits working time. On such a day the planned time counts for the part of the day the absence covers, and the time tracked on the day replaces it as far as it goes beyond the rest of the day, independent of the company's absence accounting; the credit never comes on top of the tracked time. |
| contingentAmount | number or null > 0 What a person takes of this type per leave year without approval, in the contingentUnit (at most 366 days or 8784 hours). Only for a working absence; set together with contingentUnit, or both empty for a type without a contingent, whose requests follow the approval rules. HR may set another amount for one employee. |
| contingentUnit | string or null Enum: "days" "hours" null The unit of contingentAmount. Days count the share of the day each requested part covers, hours the scheduled working time of the requested parts. |
{- "names": {
- "en": "string",
- "de": "string"
}, - "colour": "string",
- "icon": "string",
- "category": "vacation",
- "creditsWorkingTime": true,
- "consumes": "leaveLedger",
- "halfDaysAllowed": true,
- "carriesStatutoryMinimum": true,
- "quotaPerOccasionDays": 1.5,
- "maxNegativeBalanceDays": 0,
- "attachmentRequirement": {
- "mode": "none",
- "afterDays": 1
}, - "certificateRequiredFromDay": 1,
- "eligibilityConditions": [
- {
- "kind": "minTenureMonths",
- "parameters": {
- "months": 12
}
}
], - "active": true,
- "payrollClass": "paid",
- "payrollPercentage": 1,
- "countingBasis": "workingDays",
- "encashmentRule": "never",
- "hourlyRequestsAllowed": false,
- "workingAbsence": false,
- "contingentAmount": 1,
- "contingentUnit": "days"
}{- "names": {
- "en": "string",
- "de": "string"
}, - "colour": "string",
- "icon": "string",
- "category": "vacation",
- "creditsWorkingTime": true,
- "consumes": "leaveLedger",
- "halfDaysAllowed": true,
- "carriesStatutoryMinimum": true,
- "quotaPerOccasionDays": 1.5,
- "maxNegativeBalanceDays": 0,
- "attachmentRequirement": {
- "mode": "none",
- "afterDays": 1
}, - "certificateRequiredFromDay": 1,
- "eligibilityConditions": [
- {
- "kind": "minTenureMonths",
- "parameters": {
- "months": 12
}
}
], - "active": true,
- "payrollClass": "paid",
- "payrollPercentage": 1,
- "countingBasis": "workingDays",
- "encashmentRule": "never",
- "hourlyRequestsAllowed": false,
- "workingAbsence": false,
- "contingentAmount": 1,
- "contingentUnit": "days",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "approvalRequired": true
}| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "names": {
- "en": "string",
- "de": "string"
}, - "colour": "string",
- "icon": "string",
- "category": "vacation",
- "creditsWorkingTime": true,
- "consumes": "leaveLedger",
- "halfDaysAllowed": true,
- "carriesStatutoryMinimum": true,
- "quotaPerOccasionDays": 1.5,
- "maxNegativeBalanceDays": 0,
- "attachmentRequirement": {
- "mode": "none",
- "afterDays": 1
}, - "certificateRequiredFromDay": 1,
- "eligibilityConditions": [
- {
- "kind": "minTenureMonths",
- "parameters": {
- "months": 12
}
}
], - "active": true,
- "payrollClass": "paid",
- "payrollPercentage": 1,
- "countingBasis": "workingDays",
- "encashmentRule": "never",
- "hourlyRequestsAllowed": false,
- "workingAbsence": false,
- "contingentAmount": 1,
- "contingentUnit": "days",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "approvalRequired": true
}| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| If-Match required | string ETag of the representation being modified (optimistic locking). A stale value yields 412. |
required | object (LocalisedText) non-empty Names per language; unique per company and language, case-insensitive. Responses also carry the resolved |
| colour required | string^#[0-9a-fA-F]{6}$ |
| icon required | string <= 50 characters |
| category required | string (AbsenceCategory) Enum: "vacation" "specialLeave" "unpaid" "timeOffInLieu" "sickness" "childSickness" "parental" "education" "compensatoryLeave" Category of an absence, shared by leave, calendar, time tracking and reporting. |
| creditsWorkingTime | boolean Whether absences of this type are credited as working time when the company uses the absence accounting timeCredit. Defaults by category; always false for timeOffInLieu. |
| consumes required | string (LeaveConsumption) Enum: "leaveLedger" "workingTimeAccount" "nothing" What taking this leave consumes. Only vacation consumes the leave ledger, only timeOffInLieu the working-time account. |
| halfDaysAllowed required | boolean |
| carriesStatutoryMinimum | boolean Marks the vacation type that carries the statutory minimum. At most one per company. |
Days (number) or null | |
| maxNegativeBalanceDays | number multiple of 0.5 >= 0 Default: 0 A quantity of leave days in half-day steps. |
required | object (AttachmentRequirement) |
| certificateRequiredFromDay | integer or null >= 1 Sickness types only: overrides the company default. |
required | Array of objects (EligibilityCondition) |
| active required | boolean |
| payrollClass required | string Enum: "paid" "unpaid" "partial" Payroll classification, owned by the leave type; reporting only maps leave types to wage-type codes. No effect on balances. |
| payrollPercentage | integer or null [ 1 .. 99 ] Required for partial, forbidden otherwise. |
| countingBasis | string Default: "workingDays" Enum: "workingDays" "workingDaysIncludingHolidays" "calendarDays" Which dates a request of the type counts. workingDays counts scheduled working days only; workingDaysIncludingHolidays also public holidays on a scheduled working day; calendarDays every date, without half days and never with a policy in hours. The attendance target of a counted holiday or day off stays 0. |
| encashmentRule | string Default: "never" Enum: "never" "onExitOnly" "aboveStatutoryMinimum" "any" When the balance may be paid out; only for types that consume the leave ledger, and never |
| hourlyRequestsAllowed | boolean Default: false Whether employees request the type by the hour. Only with countingBasis workingDays, and for a type consuming the leave ledger only while all its policies use unit hours. |
| workingAbsence | boolean Default: false Whether the employee works on an absence of this type, such as a code sprint, a business trip or a training. Only for a type that credits working time. On such a day the planned time counts for the part of the day the absence covers, and the time tracked on the day replaces it as far as it goes beyond the rest of the day, independent of the company's absence accounting; the credit never comes on top of the tracked time. |
| contingentAmount | number or null > 0 What a person takes of this type per leave year without approval, in the contingentUnit (at most 366 days or 8784 hours). Only for a working absence; set together with contingentUnit, or both empty for a type without a contingent, whose requests follow the approval rules. HR may set another amount for one employee. |
| contingentUnit | string or null Enum: "days" "hours" null The unit of contingentAmount. Days count the share of the day each requested part covers, hours the scheduled working time of the requested parts. |
{- "names": {
- "en": "string",
- "de": "string"
}, - "colour": "string",
- "icon": "string",
- "category": "vacation",
- "creditsWorkingTime": true,
- "consumes": "leaveLedger",
- "halfDaysAllowed": true,
- "carriesStatutoryMinimum": true,
- "quotaPerOccasionDays": 1.5,
- "maxNegativeBalanceDays": 0,
- "attachmentRequirement": {
- "mode": "none",
- "afterDays": 1
}, - "certificateRequiredFromDay": 1,
- "eligibilityConditions": [
- {
- "kind": "minTenureMonths",
- "parameters": {
- "months": 12
}
}
], - "active": true,
- "payrollClass": "paid",
- "payrollPercentage": 1,
- "countingBasis": "workingDays",
- "encashmentRule": "never",
- "hourlyRequestsAllowed": false,
- "workingAbsence": false,
- "contingentAmount": 1,
- "contingentUnit": "days"
}{- "names": {
- "en": "string",
- "de": "string"
}, - "colour": "string",
- "icon": "string",
- "category": "vacation",
- "creditsWorkingTime": true,
- "consumes": "leaveLedger",
- "halfDaysAllowed": true,
- "carriesStatutoryMinimum": true,
- "quotaPerOccasionDays": 1.5,
- "maxNegativeBalanceDays": 0,
- "attachmentRequirement": {
- "mode": "none",
- "afterDays": 1
}, - "certificateRequiredFromDay": 1,
- "eligibilityConditions": [
- {
- "kind": "minTenureMonths",
- "parameters": {
- "months": 12
}
}
], - "active": true,
- "payrollClass": "paid",
- "payrollPercentage": 1,
- "countingBasis": "workingDays",
- "encashmentRule": "never",
- "hourlyRequestsAllowed": false,
- "workingAbsence": false,
- "contingentAmount": 1,
- "contingentUnit": "days",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "approvalRequired": true
}A type with policies, ledger entries or requests answers 409; archive it with active false instead.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "type": "../dictionary",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "../dictionary",
- "code": 0,
- "correlationId": "string",
- "violations": [
- {
- "propertyPath": "startDate",
- "message": "string",
- "code": "string",
- "existingEmployeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "suggestion": "string",
- "pair": "string",
- "scheme": "light",
- "ratio": "string",
- "required": "string",
- "proposal": "string",
- "requiredBy": "string",
- "line": 0,
- "column": 0,
- "placeholder": "string",
- "slot": "string",
- "language": "string",
- "maxBytes": 0,
- "formats": "string"
}
], - "dependents": [
- {
- "type": "string",
- "count": 1,
- "effect": "kept"
}
]
}The employees whose contingent of the type differs from the amount of the type, by name and year.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| page | integer >= 1 Default: 1 |
| perPage | integer [ 1 .. 200 ] Default: 50 |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "unit": "days",
- "amount": 0,
- "year": 0
}
], - "meta": {
- "page": 1,
- "perPage": 1,
- "totalItems": 0,
- "facets": {
- "property1": {
- "property1": 1,
- "property2": 1
}, - "property2": {
- "property1": 1,
- "property2": 1
}
}, - "groupBy": "string",
- "groups": [
- {
- "key": "string",
- "label": "string",
- "count": 1
}
]
}
}Replaces the amount of the type for the employee in the named leave year, or in every year without one; an amount for a year wins over the one for every year. An amount of 0 takes the contingent from the employee. Only a type with a contingent takes one, otherwise 422.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| employeeId required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| amount required | number >= 0 The contingent in the unit of the type; 0 takes it away. |
| year | integer or null [ 2000 .. 2100 ] The leave year, named after the calendar year it starts in. Without it, or null, the amount holds in every year. |
{- "amount": 0,
- "year": 2000
}{- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "unit": "days",
- "amount": 0,
- "year": 0
}The employee has the amount of the type again. Without year the one for every year is removed.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| employeeId required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| year | integer >= 2000 The leave year of the contingent to remove. |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "type": "../dictionary",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "../dictionary",
- "code": 0,
- "correlationId": "string",
- "violations": [
- {
- "propertyPath": "startDate",
- "message": "string",
- "code": "string",
- "existingEmployeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "suggestion": "string",
- "pair": "string",
- "scheme": "light",
- "ratio": "string",
- "required": "string",
- "proposal": "string",
- "requiredBy": "string",
- "line": 0,
- "column": 0,
- "placeholder": "string",
- "slot": "string",
- "language": "string",
- "maxBytes": 0,
- "formats": "string"
}
], - "dependents": [
- {
- "type": "string",
- "count": 1,
- "effect": "kept"
}
]
}| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "kind": "string",
- "label": "string",
- "description": "string",
- "parametersSchema": { }
}
]
}| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "changeReason": {
- "comment": "string",
- "tagIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "highlighted": true
}, - "pastDatesWindowDays": 7,
- "minimumStaffingPercent": 1,
- "expiryReminderLeadDays": 60,
- "compensatoryLeaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "compensatoryValidityDays": 90,
- "hourlyRequestStepSeconds": 300
}Does not contain visibility settings or cancellation approval; those are organisation settings and approval rules.
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| If-Match required | string ETag of the representation being modified (optimistic locking). A stale value yields 412. |
object (ChangeReasonInput) Why the change is made, stored with the change set in the same transaction and never changed: shown with every history entry of the change set to exactly the readers of those entries. Not stored when nothing changes. | |
| pastDatesWindowDays required | integer [ 0 .. 366 ] Default: 7 |
| minimumStaffingPercent required | integer or null [ 1 .. 100 ] |
| expiryReminderLeadDays required | integer [ 1 .. 366 ] Default: 60 |
required | Uuid (string) or null The type of the company, of category compensatoryLeave, on which compensatory days are booked; null while there is none. Optional in an update, which then keeps it. |
| compensatoryValidityDays required | integer [ 1 .. 730 ] Default: 90 How long compensatory days stay valid. Optional in an update, which then keeps it. |
| hourlyRequestStepSeconds required | integer Default: 900 Enum: 300 900 1800 3600 The step of start and end of hourly requests. Optional in an update, which then keeps it. |
{- "changeReason": {
- "comment": "string",
- "tagIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "highlighted": true
}, - "pastDatesWindowDays": 7,
- "minimumStaffingPercent": 1,
- "expiryReminderLeadDays": 60,
- "compensatoryLeaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "compensatoryValidityDays": 90,
- "hourlyRequestStepSeconds": 300
}{- "changeReason": {
- "comment": "string",
- "tagIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "highlighted": true
}, - "pastDatesWindowDays": 7,
- "minimumStaffingPercent": 1,
- "expiryReminderLeadDays": 60,
- "compensatoryLeaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "compensatoryValidityDays": 90,
- "hourlyRequestStepSeconds": 300
}| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "countryCode": "string",
- "sicknessCertificateFromDay": 1,
- "expireOnlyAfterReminder": true,
- "defaults": {
- "sicknessCertificateFromDay": 0,
- "expireOnlyAfterReminder": true
}, - "isDefault": true
}
]
}| countryCode required | string^[A-Z]{2}$ ISO 3166-1 alpha-2 code of a country the company has an office in. |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "countryCode": "string",
- "sicknessCertificateFromDay": 1,
- "expireOnlyAfterReminder": true,
- "defaults": {
- "sicknessCertificateFromDay": 0,
- "expireOnlyAfterReminder": true
}, - "isDefault": true
}A value equal to the country package's default follows the package from then on.
| countryCode required | string^[A-Z]{2}$ ISO 3166-1 alpha-2 code of a country the company has an office in. |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| If-Match required | string ETag of the representation being modified (optimistic locking). A stale value yields 412. |
| sicknessCertificateFromDay required | integer or null >= 1 |
| expireOnlyAfterReminder required | boolean |
{- "sicknessCertificateFromDay": 1,
- "expireOnlyAfterReminder": true
}{- "countryCode": "string",
- "sicknessCertificateFromDay": 1,
- "expireOnlyAfterReminder": true,
- "defaults": {
- "sicknessCertificateFromDay": 0,
- "expireOnlyAfterReminder": true
}, - "isDefault": true
}Sort allow-list: name, validFrom.
| page | integer >= 1 Default: 1 |
| perPage | integer [ 1 .. 200 ] Default: 50 |
| sort | string Examples: sort=-startDate,employee Comma-separated property names; a leading "-" sorts descending. |
| leaveTypeId | string <uuid> (Uuid) Examples: leaveTypeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "annualDays": 1.5,
- "referenceDaysPerWeek": 5,
- "accrualMode": "yearlyUpfront",
- "quotaPeriod": "week",
- "quotaPeriodAnchor": "string",
- "quotaPerPeriod": 0,
- "periodCarryOver": {
- "mode": "none",
- "cap": 0
}, - "prorateFirstPeriod": false,
- "penaltyDeductionAllowed": false,
- "allowUsageBeforeAccrual": true,
- "rounding": "nearestHalfDay",
- "exitYearStatutoryFull": true,
- "carryOver": {
- "mode": "none",
- "capDays": 1.5,
- "capSeconds": 0,
- "expiresOn": "03-31"
}, - "validFrom": "2026-10-01",
- "validUntil": "2026-10-01",
- "scope": {
- "employmentTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "employeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
]
}, - "unit": "days",
- "carryOverExpiry": {
- "kind": "none",
- "date": "string",
- "value": 1,
- "unit": "days"
}, - "leaveYearStart": "01-01",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}
], - "meta": {
- "page": 1,
- "perPage": 1,
- "totalItems": 0,
- "facets": {
- "property1": {
- "property1": 1,
- "property2": 1
}, - "property2": {
- "property1": 1,
- "property2": 1
}
}, - "groupBy": "string",
- "groups": [
- {
- "key": "string",
- "label": "string",
- "count": 1
}
]
}
}Rejected with 422 when the annual days undercut the statutory minimum or an equally specific policy overlaps.
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| Idempotency-Key | string <uuid> Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 ( |
| leaveTypeId required | string <uuid> (Uuid) |
| name required | string [ 1 .. 100 ] characters |
| annualDays required | number (Days) multiple of 0.5 A quantity of leave days in half-day steps. |
| referenceDaysPerWeek required | integer [ 1 .. 7 ] Default: 5 |
| accrualMode required | string Enum: "yearlyUpfront" "monthlyProRata" "periodicQuota" periodicQuota grants quotaPerPeriod every period, valid for the period; the unused rest is carried into the next period as periodCarryOver allows and expires otherwise. |
| quotaPeriod | string or null Enum: "week" "month" "everyNDays" null |
| quotaPeriodAnchor | string or null For week the weekday it starts on (1 Monday to 7 Sunday), for month the day (1 to 28, or lastDay for periods ending on the last day of the month), for everyNDays the number of days (2 to 366) counted from the employment start. |
| quotaPerPeriod | number or null The quota of each period, in days (a multiple of 0.5), or seconds under hours. For the statutory vacation type the quotas of a year reach at least the statutory minimum. |
object | |
| prorateFirstPeriod | boolean Default: false Whether a first period begun before the hire grants a share by calendar days instead of the full quota. |
| penaltyDeductionAllowed | boolean Default: false Whether penalties of the core penalty account may deduct leave of this policy; for statutory vacation never below the statutory minimum. |
| allowUsageBeforeAccrual | boolean Default: true |
| rounding required | string Default: "nearestHalfDay" Enum: "nearestHalfDay" "upToHalfDay" "downToHalfDay" |
| exitYearStatutoryFull | boolean Default: true |
required | object (CarryOverRule) |
| validFrom required | string <date> (Date) |
Date (string) or null | |
required | object (PolicyScope) Empty lists mean no restriction. The policy with the most restricted criteria wins. |
| unit | string (LeaveUnit) Enum: "days" "hours" Ledger unit of this policy; hours makes every day cost its scheduled seconds. Default days. |
object (CarryOverExpiry) | |
| leaveYearStart | string^(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$ Default: "01-01" Month and day (MM-DD) the leave year starts on; grants, pro-rating, carry-over, expiry and the statutory minimum follow it. Not 29 February. All policies of a leave type share it. German law counts the calendar year. |
{- "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "annualDays": 1.5,
- "referenceDaysPerWeek": 5,
- "accrualMode": "yearlyUpfront",
- "quotaPeriod": "week",
- "quotaPeriodAnchor": "string",
- "quotaPerPeriod": 0,
- "periodCarryOver": {
- "mode": "none",
- "cap": 0
}, - "prorateFirstPeriod": false,
- "penaltyDeductionAllowed": false,
- "allowUsageBeforeAccrual": true,
- "rounding": "nearestHalfDay",
- "exitYearStatutoryFull": true,
- "carryOver": {
- "mode": "none",
- "capDays": 1.5,
- "capSeconds": 0,
- "expiresOn": "03-31"
}, - "validFrom": "2026-10-01",
- "validUntil": "2026-10-01",
- "scope": {
- "employmentTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "employeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
]
}, - "unit": "days",
- "carryOverExpiry": {
- "kind": "none",
- "date": "string",
- "value": 1,
- "unit": "days"
}, - "leaveYearStart": "01-01"
}{- "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "annualDays": 1.5,
- "referenceDaysPerWeek": 5,
- "accrualMode": "yearlyUpfront",
- "quotaPeriod": "week",
- "quotaPeriodAnchor": "string",
- "quotaPerPeriod": 0,
- "periodCarryOver": {
- "mode": "none",
- "cap": 0
}, - "prorateFirstPeriod": false,
- "penaltyDeductionAllowed": false,
- "allowUsageBeforeAccrual": true,
- "rounding": "nearestHalfDay",
- "exitYearStatutoryFull": true,
- "carryOver": {
- "mode": "none",
- "capDays": 1.5,
- "capSeconds": 0,
- "expiresOn": "03-31"
}, - "validFrom": "2026-10-01",
- "validUntil": "2026-10-01",
- "scope": {
- "employmentTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "employeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
]
}, - "unit": "days",
- "carryOverExpiry": {
- "kind": "none",
- "date": "string",
- "value": 1,
- "unit": "days"
}, - "leaveYearStart": "01-01",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "annualDays": 1.5,
- "referenceDaysPerWeek": 5,
- "accrualMode": "yearlyUpfront",
- "quotaPeriod": "week",
- "quotaPeriodAnchor": "string",
- "quotaPerPeriod": 0,
- "periodCarryOver": {
- "mode": "none",
- "cap": 0
}, - "prorateFirstPeriod": false,
- "penaltyDeductionAllowed": false,
- "allowUsageBeforeAccrual": true,
- "rounding": "nearestHalfDay",
- "exitYearStatutoryFull": true,
- "carryOver": {
- "mode": "none",
- "capDays": 1.5,
- "capSeconds": 0,
- "expiresOn": "03-31"
}, - "validFrom": "2026-10-01",
- "validUntil": "2026-10-01",
- "scope": {
- "employmentTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "employeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
]
}, - "unit": "days",
- "carryOverExpiry": {
- "kind": "none",
- "date": "string",
- "value": 1,
- "unit": "days"
}, - "leaveYearStart": "01-01",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| If-Match required | string ETag of the representation being modified (optimistic locking). A stale value yields 412. |
| leaveTypeId required | string <uuid> (Uuid) |
| name required | string [ 1 .. 100 ] characters |
| annualDays required | number (Days) multiple of 0.5 A quantity of leave days in half-day steps. |
| referenceDaysPerWeek required | integer [ 1 .. 7 ] Default: 5 |
| accrualMode required | string Enum: "yearlyUpfront" "monthlyProRata" "periodicQuota" periodicQuota grants quotaPerPeriod every period, valid for the period; the unused rest is carried into the next period as periodCarryOver allows and expires otherwise. |
| quotaPeriod | string or null Enum: "week" "month" "everyNDays" null |
| quotaPeriodAnchor | string or null For week the weekday it starts on (1 Monday to 7 Sunday), for month the day (1 to 28, or lastDay for periods ending on the last day of the month), for everyNDays the number of days (2 to 366) counted from the employment start. |
| quotaPerPeriod | number or null The quota of each period, in days (a multiple of 0.5), or seconds under hours. For the statutory vacation type the quotas of a year reach at least the statutory minimum. |
object | |
| prorateFirstPeriod | boolean Default: false Whether a first period begun before the hire grants a share by calendar days instead of the full quota. |
| penaltyDeductionAllowed | boolean Default: false Whether penalties of the core penalty account may deduct leave of this policy; for statutory vacation never below the statutory minimum. |
| allowUsageBeforeAccrual | boolean Default: true |
| rounding required | string Default: "nearestHalfDay" Enum: "nearestHalfDay" "upToHalfDay" "downToHalfDay" |
| exitYearStatutoryFull | boolean Default: true |
required | object (CarryOverRule) |
| validFrom required | string <date> (Date) |
Date (string) or null | |
required | object (PolicyScope) Empty lists mean no restriction. The policy with the most restricted criteria wins. |
| unit | string (LeaveUnit) Enum: "days" "hours" Ledger unit of this policy; hours makes every day cost its scheduled seconds. Default days. |
object (CarryOverExpiry) | |
| leaveYearStart | string^(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$ Default: "01-01" Month and day (MM-DD) the leave year starts on; grants, pro-rating, carry-over, expiry and the statutory minimum follow it. Not 29 February. All policies of a leave type share it. German law counts the calendar year. |
{- "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "annualDays": 1.5,
- "referenceDaysPerWeek": 5,
- "accrualMode": "yearlyUpfront",
- "quotaPeriod": "week",
- "quotaPeriodAnchor": "string",
- "quotaPerPeriod": 0,
- "periodCarryOver": {
- "mode": "none",
- "cap": 0
}, - "prorateFirstPeriod": false,
- "penaltyDeductionAllowed": false,
- "allowUsageBeforeAccrual": true,
- "rounding": "nearestHalfDay",
- "exitYearStatutoryFull": true,
- "carryOver": {
- "mode": "none",
- "capDays": 1.5,
- "capSeconds": 0,
- "expiresOn": "03-31"
}, - "validFrom": "2026-10-01",
- "validUntil": "2026-10-01",
- "scope": {
- "employmentTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "employeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
]
}, - "unit": "days",
- "carryOverExpiry": {
- "kind": "none",
- "date": "string",
- "value": 1,
- "unit": "days"
}, - "leaveYearStart": "01-01"
}{- "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "annualDays": 1.5,
- "referenceDaysPerWeek": 5,
- "accrualMode": "yearlyUpfront",
- "quotaPeriod": "week",
- "quotaPeriodAnchor": "string",
- "quotaPerPeriod": 0,
- "periodCarryOver": {
- "mode": "none",
- "cap": 0
}, - "prorateFirstPeriod": false,
- "penaltyDeductionAllowed": false,
- "allowUsageBeforeAccrual": true,
- "rounding": "nearestHalfDay",
- "exitYearStatutoryFull": true,
- "carryOver": {
- "mode": "none",
- "capDays": 1.5,
- "capSeconds": 0,
- "expiresOn": "03-31"
}, - "validFrom": "2026-10-01",
- "validUntil": "2026-10-01",
- "scope": {
- "employmentTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "employeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
]
}, - "unit": "days",
- "carryOverExpiry": {
- "kind": "none",
- "date": "string",
- "value": 1,
- "unit": "days"
}, - "leaveYearStart": "01-01",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}A policy that produced ledger entries answers 409; end it through validUntil.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "type": "../dictionary",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "../dictionary",
- "code": 0,
- "correlationId": "string",
- "violations": [
- {
- "propertyPath": "startDate",
- "message": "string",
- "code": "string",
- "existingEmployeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "suggestion": "string",
- "pair": "string",
- "scheme": "light",
- "ratio": "string",
- "required": "string",
- "proposal": "string",
- "requiredBy": "string",
- "line": 0,
- "column": 0,
- "placeholder": "string",
- "slot": "string",
- "language": "string",
- "maxBytes": 0,
- "formats": "string"
}
], - "dependents": [
- {
- "type": "string",
- "count": 1,
- "effect": "kept"
}
]
}| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| leaveTypeId required | string <uuid> (Uuid) Examples: leaveTypeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| year required | integer >= 2000 |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "unit": "days",
- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "year": 0,
- "policyId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "annualDays": 1.5,
- "annualSeconds": 0,
- "referenceDaysPerWeek": 0,
- "months": [
- {
- "month": 1,
- "employed": true,
- "workingDaysPerWeek": 0,
- "factor": 0
}
], - "proRatedDays": 0,
- "rounding": "string",
- "roundedDays": 1.5,
- "roundedSeconds": 0,
- "statutoryMinimumDays": 1.5,
- "statutoryMinimumSeconds": 0,
- "entitlementDays": 1.5,
- "entitlementSeconds": 0,
- "carryOverInDays": 1.5,
- "carryOverInSeconds": 0,
- "bookedDays": 1.5,
- "bookedSeconds": 0,
- "coveredByOpeningEntryId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "adjustments": [
- {
- "reason": "severeDisability",
- "days": 0,
- "seconds": 0,
- "statutory": true
}
]
}One entry for each active leave type that has a contingent for the employee, with what is used and what remains. The employee reads their own, a manager those of their reports, HR all; anybody else receives 404.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| year | integer >= 2000 The leave year, named after the calendar year it starts in. Default: the current leave year. |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "leaveType": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "colour": "string"
}, - "unit": "days",
- "year": 0,
- "startDate": "2026-10-01",
- "endDate": "2026-10-01",
- "amount": 0,
- "used": 0,
- "remaining": 0
}
]
}Sort allow-list: startedAt.
| page | integer >= 1 Default: 1 |
| perPage | integer [ 1 .. 200 ] Default: 50 |
| sort | string Examples: sort=-startDate,employee Comma-separated property names; a leading "-" sorts descending. |
| kind | string (LeaveRunKind) Enum: "yearStart" "monthlyAccrual" "carryOver" "expiry" "reminder" |
| year | integer |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "kind": "yearStart",
- "year": 0,
- "month": 0,
- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "entriesCreated": 0,
- "entriesSkipped": 0,
- "entriesFailed": 0,
- "failures": [
- {
- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "reason": "string"
}
], - "findings": [
- {
- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "code": "reminderMissing",
- "message": "string"
}
], - "startedAt": "2026-10-01T08:15:00+02:00",
- "finishedAt": "2026-10-01T08:15:00+02:00"
}
], - "meta": {
- "page": 1,
- "perPage": 1,
- "totalItems": 0,
- "facets": {
- "property1": {
- "property1": 1,
- "property2": 1
}, - "property2": {
- "property1": 1,
- "property2": 1
}
}, - "groupBy": "string",
- "groups": [
- {
- "key": "string",
- "label": "string",
- "count": 1
}
]
}
}Idempotent per employee, type, kind and period; missed periods are booked individually.
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| Idempotency-Key | string <uuid> Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 ( |
| kind required | string (LeaveRunKind) Enum: "yearStart" "monthlyAccrual" "carryOver" "expiry" "reminder" |
| year required | integer >= 2000 |
| month | integer or null [ 1 .. 12 ] |
Uuid (string) or null |
{- "kind": "yearStart",
- "year": 2000,
- "month": 1,
- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}{- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "kind": "yearStart",
- "year": 0,
- "month": 0,
- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "entriesCreated": 0,
- "entriesSkipped": 0,
- "entriesFailed": 0,
- "failures": [
- {
- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "reason": "string"
}
], - "findings": [
- {
- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "code": "reminderMissing",
- "message": "string"
}
], - "startedAt": "2026-10-01T08:15:00+02:00",
- "finishedAt": "2026-10-01T08:15:00+02:00"
}| page | integer >= 1 Default: 1 |
| perPage | integer [ 1 .. 200 ] Default: 50 |
| date | string <date> (Date) Examples: date=2026-10-01 Balance and forecast at this date. Default: today. |
| leaveTypeId | string <uuid> (Uuid) Examples: leaveTypeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "unit": "days",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "leaveType": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "colour": "string"
}, - "date": "2026-10-01",
- "balanceDays": 0,
- "balanceSeconds": 0,
- "reservedDays": 1.5,
- "reservedSeconds": 0,
- "plannedAccrualDays": 1.5,
- "plannedAccrualSeconds": 0,
- "forecastDays": 0,
- "forecastSeconds": 0,
- "figures": {
- "plannedSharePercent": 0,
- "leaveYearStart": "2026-10-01",
- "leaveYearEnd": "2026-10-01",
- "broughtForwardDays": 0,
- "broughtForwardSeconds": 0,
- "takenOverDays": 0,
- "takenOverSeconds": 0,
- "entitledDays": 0,
- "entitledSeconds": 0,
- "usedDays": 0,
- "usedSeconds": 0,
- "deductedDays": 0,
- "deductedSeconds": 0,
- "expiredDays": 0,
- "expiredSeconds": 0,
- "remainingDays": 0,
- "remainingSeconds": 0,
- "pendingDays": 0,
- "pendingSeconds": 0,
- "plannedDays": 0,
- "plannedSeconds": 0
}, - "buckets": [
- {
- "unit": "days",
- "entryId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "entryType": "grant",
- "remainingDays": 1.5,
- "remainingSeconds": 0,
- "validFrom": "2026-10-01",
- "validUntil": "2026-10-01"
}
]
}
], - "meta": {
- "page": 1,
- "perPage": 1,
- "totalItems": 0,
- "facets": {
- "property1": {
- "property1": 1,
- "property2": 1
}, - "property2": {
- "property1": 1,
- "property2": 1
}
}, - "groupBy": "string",
- "groups": [
- {
- "key": "string",
- "label": "string",
- "count": 1
}
]
}
}Sort allow-list: employee, balanceDays.
| page | integer >= 1 Default: 1 |
| perPage | integer [ 1 .. 200 ] Default: 50 |
| sort | string Examples: sort=-startDate,employee Comma-separated property names; a leading "-" sorts descending. |
| scope | string (ListScope) Default: "self" Enum: "self" "team" "company" self: the caller. team: reports in scope of a manager. company: HR sees every employee; others receive only what they may see (their own, plus reports in scope). A wider scope is narrowed, never answered with 403. |
| date | string <date> (Date) Examples: date=2026-10-01 |
| employeeId | string <uuid> (Uuid) Examples: employeeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| leaveTypeId | string <uuid> (Uuid) Examples: leaveTypeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| departmentId | string <uuid> (Uuid) Examples: departmentId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "unit": "days",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "leaveType": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "colour": "string"
}, - "date": "2026-10-01",
- "balanceDays": 0,
- "balanceSeconds": 0,
- "reservedDays": 1.5,
- "reservedSeconds": 0,
- "plannedAccrualDays": 1.5,
- "plannedAccrualSeconds": 0,
- "forecastDays": 0,
- "forecastSeconds": 0,
- "figures": {
- "plannedSharePercent": 0,
- "leaveYearStart": "2026-10-01",
- "leaveYearEnd": "2026-10-01",
- "broughtForwardDays": 0,
- "broughtForwardSeconds": 0,
- "takenOverDays": 0,
- "takenOverSeconds": 0,
- "entitledDays": 0,
- "entitledSeconds": 0,
- "usedDays": 0,
- "usedSeconds": 0,
- "deductedDays": 0,
- "deductedSeconds": 0,
- "expiredDays": 0,
- "expiredSeconds": 0,
- "remainingDays": 0,
- "remainingSeconds": 0,
- "pendingDays": 0,
- "pendingSeconds": 0,
- "plannedDays": 0,
- "plannedSeconds": 0
}, - "buckets": [
- {
- "unit": "days",
- "entryId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "entryType": "grant",
- "remainingDays": 1.5,
- "remainingSeconds": 0,
- "validFrom": "2026-10-01",
- "validUntil": "2026-10-01"
}
]
}
], - "meta": {
- "page": 1,
- "perPage": 1,
- "totalItems": 0,
- "facets": {
- "property1": {
- "property1": 1,
- "property2": 1
}, - "property2": {
- "property1": 1,
- "property2": 1
}
}, - "groupBy": "string",
- "groups": [
- {
- "key": "string",
- "label": "string",
- "count": 1
}
]
}
}Sort allow-list: effectiveDate, createdAt. Visible to the employee, managers in scope and HR.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| page | integer >= 1 Default: 1 |
| perPage | integer [ 1 .. 200 ] Default: 50 |
| sort | string Examples: sort=-startDate,employee Comma-separated property names; a leading "-" sorts descending. |
| leaveTypeId | string <uuid> (Uuid) Examples: leaveTypeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| entryType | string (LedgerEntryType) Enum: "grant" "accrual" "carryOver" "allocation" "usage" "refund" "expiry" "adjustment" "conversion" "opening" "encashment" "compensatory" "penalty" opening is booked only by the migration import and has no API; conversion pairs close one unit and open the other; encashment is leave paid out, and a positive encashment gives a reversed one back; penalty is the leave deduction of a core penalty, and a positive penalty gives a withdrawn one back. |
| from | string <date> (Date) Examples: from=2026-10-01 Inclusive start date of the period. |
| to | string <date> (Date) Examples: to=2026-10-01 Inclusive end date of the period. |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "unit": "days",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "entryType": "grant",
- "quantity": 0,
- "quantitySeconds": 0,
- "effectiveDate": "2026-10-01",
- "validFrom": "2026-10-01",
- "validUntil": "2026-10-01",
- "source": {
- "type": "leaveRequest",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}, - "reason": "string",
- "consumptions": [
- {
- "unit": "days",
- "entryId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "days": 1.5,
- "seconds": 1
}
], - "createdAt": "2026-10-01T08:15:00+02:00",
- "createdBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "origin": "user",
- "coversFrom": "2026-10-01",
- "coversUntil": "2026-10-01"
}
], - "meta": {
- "page": 1,
- "perPage": 1,
- "totalItems": 0,
- "facets": {
- "property1": {
- "property1": 1,
- "property2": 1
}, - "property2": {
- "property1": 1,
- "property2": 1
}
}, - "groupBy": "string",
- "groups": [
- {
- "key": "string",
- "label": "string",
- "count": 1
}
]
}
}HR only, never for the HR user's own ledger. The balance may become negative.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| Idempotency-Key | string <uuid> Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 ( |
| leaveTypeId required | string <uuid> (Uuid) |
| quantity required | number or null multiple of 0.5 Signed, not 0. |
| quantitySeconds | integer or null [ -3600000 .. 3600000 ] quantity expressed in seconds when the policy unit is hours; null under days. |
| effectiveDate required | string <date> (Date) |
Date (string) or null | |
Date (string) or null | |
| reason required | string [ 1 .. 500 ] characters |
{- "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "quantity": 0,
- "quantitySeconds": -3600000,
- "effectiveDate": "2026-10-01",
- "validFrom": "2026-10-01",
- "validUntil": "2026-10-01",
- "reason": "string"
}{- "unit": "days",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "entryType": "grant",
- "quantity": 0,
- "quantitySeconds": 0,
- "effectiveDate": "2026-10-01",
- "validFrom": "2026-10-01",
- "validUntil": "2026-10-01",
- "source": {
- "type": "leaveRequest",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}, - "reason": "string",
- "consumptions": [
- {
- "unit": "days",
- "entryId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "days": 1.5,
- "seconds": 1
}
], - "createdAt": "2026-10-01T08:15:00+02:00",
- "createdBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "origin": "user",
- "coversFrom": "2026-10-01",
- "coversUntil": "2026-10-01"
}Under the type's encashmentRule: nothing for never; for onExitOnly the remainder at exit, from a recorded exit date on; for aboveStatutoryMinimum during employment the year's entitlement less the statutory minimum less what penalties and encashments took that year, and the remainder at exit; for any the remaining balance. The employee themself and HR; a manager gets 403, anyone else 404.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| leaveTypeId required | string <uuid> (Uuid) Examples: leaveTypeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| date required | string <date> (Date) Examples: date=2026-10-01 |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "date": "2026-10-01",
- "rule": "never",
- "unit": "days",
- "quantityDays": 0,
- "quantitySeconds": 0,
- "limit": "notEncashable"
}HR books an encashment entry within what getLeaveEncashableQuantity allows, consuming entries in the one consumption order, and leave announces LeaveEncashed without any money; payroll values it. HR never encashes their own leave (403). A larger quantity is refused with 422 and the code statutoryMinimum, notExiting, notEncashable or insufficientBalance.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| leaveTypeId required | string <uuid> (Uuid) |
| quantity | number multiple of 0.5 > 0 Days, for a day-based policy. |
| quantitySeconds | integer [ 1 .. 3600000 ] Seconds, for an hour-based policy. |
| effectiveDate required | string <date> (Date) |
{- "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "quantity": 1,
- "quantitySeconds": 1,
- "effectiveDate": "2026-10-01"
}{- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "entryId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "unit": "days",
- "quantityDays": 0,
- "quantitySeconds": 0,
- "effectiveDate": "2026-10-01",
- "source": "hr",
- "reference": "string",
- "status": "booked",
- "createdAt": "2019-08-24T14:15:22Z"
}HR. The consumed entries are given back once; a second reversal answers 409.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "entryId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "unit": "days",
- "quantityDays": 0,
- "quantitySeconds": 0,
- "effectiveDate": "2026-10-01",
- "source": "hr",
- "reference": "string",
- "status": "booked",
- "createdAt": "2019-08-24T14:15:22Z"
}Per leave type the employee has entries of, the balance at the recorded exit date, after the exit year was recalculated and approved leave after the exit was given back. A negative remainder means more was taken than earned; it is reported and never booked or claimed back. Without an exit date, exitDate is null and remainders is empty. The employee themself and HR; a manager gets 403, anyone else 404.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "exitDate": "2026-10-01",
- "remainders": [
- {
- "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "unit": "days",
- "quantityDays": 0,
- "quantitySeconds": 0
}
]
}HR allocates days of a type with a balance to up to 500 employees: quantity in days (halves) for policies in days, or quantitySeconds for policies in hours, an optional validUntil (else the end of the year) and a reason. The mode book books an allocation entry per employee at once with the batch as source; request files an allocation request per employee on their behalf, each submitted to the approval engine. Each employee is checked like a single allocation; a failure (ownLedger, eligibility.
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| Idempotency-Key | string <uuid> Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 ( |
| leaveTypeId required | string <uuid> (Uuid) |
| employeeIds required | Array of strings <uuid> (Uuid) [ 1 .. 500 ] items [ items <uuid > ] |
| quantity | number multiple of 0.5 > 0 Days, for employees whose policy counts days. Give either quantity or quantitySeconds. |
| quantitySeconds | integer [ 1 .. 3600000 ] Seconds, for employees whose policy counts hours. |
| validUntil | string <date> (Date) |
| reason required | string [ 1 .. 1000 ] characters |
| mode required | string Enum: "book" "request" |
{- "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "quantity": 1,
- "quantitySeconds": 1,
- "validUntil": "2026-10-01",
- "reason": "string",
- "mode": "book"
}{- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "mode": "book",
- "items": [
- {
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "outcome": "booked",
- "code": "string",
- "entryId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "requestId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}
]
}A CSV or XLSX file of at most 5000 rows with the columns personnelNumber, leaveType (ID or name), mode (delta or target), quantity (days in halves, or hours with two decimals under an hour-based policy), effectiveDate, validUntil (optional) and reason. Every row books an adjustment: the quantity in delta mode, the difference to the balance at the effective date in target mode, nothing for a difference of 0. A dry run, the default, books nothing. All rows or none: any invalid row rejects the file with 422 and violations at rows.
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| file required | string <binary> |
| dryRun | boolean Default: true |
{- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "dryRun": true,
- "rows": [
- {
- "row": 0,
- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "mode": "delta",
- "unit": "days",
- "quantityDays": 0,
- "quantitySeconds": 0,
- "effectiveDate": "2026-10-01",
- "validUntil": "2026-10-01",
- "outcome": "book"
}
]
}An XLSX file whose first sheet has the column codes as its header and whose second sheet explains the columns in the reader's language and lists the leave types that keep a balance with their ID.
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "type": "../dictionary",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "../dictionary",
- "code": 0,
- "correlationId": "string",
- "violations": [
- {
- "propertyPath": "startDate",
- "message": "string",
- "code": "string",
- "existingEmployeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "suggestion": "string",
- "pair": "string",
- "scheme": "light",
- "ratio": "string",
- "required": "string",
- "proposal": "string",
- "requiredBy": "string",
- "line": 0,
- "column": 0,
- "placeholder": "string",
- "slot": "string",
- "language": "string",
- "maxBytes": 0,
- "formats": "string"
}
], - "dependents": [
- {
- "type": "string",
- "count": 1,
- "effect": "kept"
}
]
}The scope self lists the caller's requests, team those of the reports, company everyone's for HR and otherwise the caller's and the reports'. With team or company and without employeeId or departmentId, an approver also gets the requests whose approval names them on its current step or that they decided, never others. Sort allow-list: startDate, createdAt (default -startDate); any other sort answers 400. Groups (groupBy): status, leaveTypeId (with the name of the leave type).
| page | integer >= 1 Default: 1 |
| perPage | integer [ 1 .. 200 ] Default: 50 |
| sort | string Examples: sort=-startDate,employee Comma-separated property names; a leading "-" sorts descending. |
| groupBy | string A grouping key of the list (see |
| scope | string (ListScope) Default: "self" Enum: "self" "team" "company" self: the caller. team: reports in scope of a manager (and requests assigned to the caller as approver). company: HR sees every request. A scope wider than the caller rights is narrowed to what they may see; colleagues never see requests. |
| employeeId | string <uuid> (Uuid) Examples: employeeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| leaveTypeId | string <uuid> (Uuid) Examples: leaveTypeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| status | string Enum: "pending" "approved" "rejected" "withdrawn" "cancelled" |
| period | string (ListPeriod) Enum: "thisMonth" "lastMonth" "thisYear" "thisYearOnward" "lastYear" "thisWeek" "lastWeek" "all" Like |
| from | string <date> (Date) Examples: from=2026-10-01 Inclusive start date of the period. |
| to | string <date> (Date) Examples: to=2026-10-01 Inclusive end date of the period. |
| departmentId | string <uuid> (Uuid) Examples: departmentId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "allowedActions": [
- "withdrawLeaveRequest"
], - "unit": "days",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "leaveType": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "colour": "string"
}, - "startDate": "2026-10-01",
- "startPart": "fullDay",
- "endDate": "2026-10-01",
- "endPart": "fullDay",
- "startAt": "string",
- "endAt": "string",
- "quantityDays": 1.5,
- "quantitySeconds": 0,
- "days": [
- {
- "unit": "days",
- "date": "2026-10-01",
- "part": "fullDay",
- "quantityDays": 1.5,
- "quantitySeconds": 0,
- "reason": "workday",
- "state": "planned",
- "holidayPart": "firstHalf",
- "scheduledTargetSeconds": 0
}
], - "status": "pending",
- "systemReason": "ineligibleAtApproval",
- "decisionSource": "hrRecorded",
- "reason": "string",
- "attachmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "approval": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "steps": [
- {
- "sequence": 1,
- "status": "waiting",
- "approvers": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}
], - "decidedBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "decidedAt": "2026-10-01T08:15:00+02:00",
- "comment": "string"
}
]
}, - "restrictedPeriodId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "absenceLimitNote": "string",
- "enteredBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "contingentNote": "string",
- "cancelledFromDate": "2026-10-01",
- "refundedDays": 1.5,
- "refundedSeconds": 0,
- "cancellation": {
- "status": "pending",
- "fromDate": "2026-10-01",
- "reason": "string",
- "approval": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "steps": [
- {
- "sequence": 1,
- "status": "waiting",
- "approvers": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}
], - "decidedBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "decidedAt": "2026-10-01T08:15:00+02:00",
- "comment": "string"
}
]
}
}, - "createdAt": "2026-10-01T08:15:00+02:00",
- "origin": "user"
}
], - "meta": {
- "page": 1,
- "perPage": 1,
- "totalItems": 0,
- "facets": {
- "property1": {
- "property1": 1,
- "property2": 1
}, - "property2": {
- "property1": 1,
- "property2": 1
}
}, - "groupBy": "string",
- "groups": [
- {
- "key": "string",
- "label": "string",
- "count": 1
}
]
}
}Submits subject leaveRequest to the approval engine; auto-approval is applied synchronously, so the 201 response already shows the final state. Approvers decide through approveApproval and rejectApproval. Only HR may name another employee, and only HR records such a request as already decided (recordedAsDecided) when it lies completely in the past.
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| Idempotency-Key | string <uuid> Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 ( |
| employeeId | string <uuid> (Uuid) Defaults to the caller. Only HR may name another employee. |
| leaveTypeId required | string <uuid> (Uuid) |
| startDate required | string <date> (Date) |
| startPart | string Default: "fullDay" Enum: "fullDay" "firstHalf" "secondHalf" |
| endDate required | string <date> (Date) |
| endPart | string Default: "fullDay" Enum: "fullDay" "firstHalf" "secondHalf" |
| startAt | string (LocalDateTime) ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?$ A date and time of the company time zone without offset, YYYY-MM-DDTHH:MM (seconds optional). |
| endAt | string (LocalDateTime) ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?$ A date and time of the company time zone without offset, YYYY-MM-DDTHH:MM (seconds optional). |
| reason | string or null <= 1000 characters |
| attachmentIds | Array of strings <uuid> (Uuid) [ items <uuid > ] |
| overrideLeaveRules | boolean Default: false HR only; skips restricted periods, absence limits and request deadlines, recorded in the request history. Employees sending true get 403. |
| recordedAsDecided | boolean Default: false HR only, for another employee: records an absence that happened already as decided, without an approval. The whole request must lie in the past (its end date before today in the time zone of the company) and the reason is required; otherwise the response is 422 with the violation recordedAsDecided or reason. Anybody else sending true gets 403. The request is approved in the response, its decisionSource is hrRecorded and the history records the reason. A day before the opening balance of the employee is charged against that balance. |
{- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "startDate": "2026-10-01",
- "startPart": "fullDay",
- "endDate": "2026-10-01",
- "endPart": "fullDay",
- "startAt": "string",
- "endAt": "string",
- "reason": "string",
- "attachmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "overrideLeaveRules": false,
- "recordedAsDecided": false
}{- "allowedActions": [
- "withdrawLeaveRequest"
], - "unit": "days",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "leaveType": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "colour": "string"
}, - "startDate": "2026-10-01",
- "startPart": "fullDay",
- "endDate": "2026-10-01",
- "endPart": "fullDay",
- "startAt": "string",
- "endAt": "string",
- "quantityDays": 1.5,
- "quantitySeconds": 0,
- "days": [
- {
- "unit": "days",
- "date": "2026-10-01",
- "part": "fullDay",
- "quantityDays": 1.5,
- "quantitySeconds": 0,
- "reason": "workday",
- "state": "planned",
- "holidayPart": "firstHalf",
- "scheduledTargetSeconds": 0
}
], - "status": "pending",
- "systemReason": "ineligibleAtApproval",
- "decisionSource": "hrRecorded",
- "reason": "string",
- "attachmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "approval": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "steps": [
- {
- "sequence": 1,
- "status": "waiting",
- "approvers": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}
], - "decidedBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "decidedAt": "2026-10-01T08:15:00+02:00",
- "comment": "string"
}
]
}, - "restrictedPeriodId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "absenceLimitNote": "string",
- "enteredBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "contingentNote": "string",
- "cancelledFromDate": "2026-10-01",
- "refundedDays": 1.5,
- "refundedSeconds": 0,
- "cancellation": {
- "status": "pending",
- "fromDate": "2026-10-01",
- "reason": "string",
- "approval": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "steps": [
- {
- "sequence": 1,
- "status": "waiting",
- "approvers": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}
], - "decidedBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "decidedAt": "2026-10-01T08:15:00+02:00",
- "comment": "string"
}
]
}
}, - "createdAt": "2026-10-01T08:15:00+02:00",
- "origin": "user"
}| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| employeeId | string <uuid> (Uuid) Defaults to the caller. Only HR may name another employee. |
| leaveTypeId required | string <uuid> (Uuid) |
| startDate required | string <date> (Date) |
| startPart | string Default: "fullDay" Enum: "fullDay" "firstHalf" "secondHalf" |
| endDate required | string <date> (Date) |
| endPart | string Default: "fullDay" Enum: "fullDay" "firstHalf" "secondHalf" |
| startAt | string (LocalDateTime) ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?$ A date and time of the company time zone without offset, YYYY-MM-DDTHH:MM (seconds optional). |
| endAt | string (LocalDateTime) ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?$ A date and time of the company time zone without offset, YYYY-MM-DDTHH:MM (seconds optional). |
| reason | string or null <= 1000 characters |
| attachmentIds | Array of strings <uuid> (Uuid) [ items <uuid > ] |
| overrideLeaveRules | boolean Default: false HR only; skips restricted periods, absence limits and request deadlines, recorded in the request history. Employees sending true get 403. |
| recordedAsDecided | boolean Default: false HR only, for another employee: records an absence that happened already as decided, without an approval. The whole request must lie in the past (its end date before today in the time zone of the company) and the reason is required; otherwise the response is 422 with the violation recordedAsDecided or reason. Anybody else sending true gets 403. The request is approved in the response, its decisionSource is hrRecorded and the history records the reason. A day before the opening balance of the employee is charged against that balance. |
{- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "startDate": "2026-10-01",
- "startPart": "fullDay",
- "endDate": "2026-10-01",
- "endPart": "fullDay",
- "startAt": "string",
- "endAt": "string",
- "reason": "string",
- "attachmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "overrideLeaveRules": false,
- "recordedAsDecided": false
}{- "unit": "days",
- "contingent": {
- "approvedAtOnce": true,
- "unit": "days",
- "amount": 0,
- "remainingBefore": 0,
- "remainingAfter": 0
}, - "valid": true,
- "quantityDays": 1.5,
- "quantitySeconds": 0,
- "days": [
- {
- "unit": "days",
- "date": "2026-10-01",
- "part": "fullDay",
- "quantityDays": 1.5,
- "quantitySeconds": 0,
- "reason": "workday",
- "state": "planned",
- "holidayPart": "firstHalf",
- "scheduledTargetSeconds": 0
}
], - "balanceBeforeDays": 0,
- "balanceAfterDays": 0,
- "consumptions": [
- {
- "unit": "days",
- "entryId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "entryType": "grant",
- "validUntil": "2026-10-01",
- "days": 1.5,
- "seconds": 0
}
], - "absentColleagues": 0,
- "belowMinimumStaffing": true,
- "approvalRequired": true,
- "attachmentRequired": true,
- "teamLeadDays": [
- "2026-10-01"
], - "violations": [
- {
- "propertyPath": "startDate",
- "message": "string",
- "code": "string",
- "existingEmployeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "suggestion": "string",
- "pair": "string",
- "scheme": "light",
- "ratio": "string",
- "required": "string",
- "proposal": "string",
- "requiredBy": "string",
- "line": 0,
- "column": 0,
- "placeholder": "string",
- "slot": "string",
- "language": "string",
- "maxBytes": 0,
- "formats": "string"
}
]
}| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "allowedActions": [
- "withdrawLeaveRequest"
], - "unit": "days",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "leaveType": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "colour": "string"
}, - "startDate": "2026-10-01",
- "startPart": "fullDay",
- "endDate": "2026-10-01",
- "endPart": "fullDay",
- "startAt": "string",
- "endAt": "string",
- "quantityDays": 1.5,
- "quantitySeconds": 0,
- "days": [
- {
- "unit": "days",
- "date": "2026-10-01",
- "part": "fullDay",
- "quantityDays": 1.5,
- "quantitySeconds": 0,
- "reason": "workday",
- "state": "planned",
- "holidayPart": "firstHalf",
- "scheduledTargetSeconds": 0
}
], - "status": "pending",
- "systemReason": "ineligibleAtApproval",
- "decisionSource": "hrRecorded",
- "reason": "string",
- "attachmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "approval": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "steps": [
- {
- "sequence": 1,
- "status": "waiting",
- "approvers": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}
], - "decidedBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "decidedAt": "2026-10-01T08:15:00+02:00",
- "comment": "string"
}
]
}, - "restrictedPeriodId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "absenceLimitNote": "string",
- "enteredBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "contingentNote": "string",
- "cancelledFromDate": "2026-10-01",
- "refundedDays": 1.5,
- "refundedSeconds": 0,
- "cancellation": {
- "status": "pending",
- "fromDate": "2026-10-01",
- "reason": "string",
- "approval": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "steps": [
- {
- "sequence": 1,
- "status": "waiting",
- "approvers": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}
], - "decidedBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "decidedAt": "2026-10-01T08:15:00+02:00",
- "comment": "string"
}
]
}
}, - "createdAt": "2026-10-01T08:15:00+02:00",
- "origin": "user"
}Only while the approval is pending (409 otherwise; an approved request is cancelled instead). A pending cancellation is withdrawn with withdrawLeaveCancellation.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "allowedActions": [
- "withdrawLeaveRequest"
], - "unit": "days",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "leaveType": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "colour": "string"
}, - "startDate": "2026-10-01",
- "startPart": "fullDay",
- "endDate": "2026-10-01",
- "endPart": "fullDay",
- "startAt": "string",
- "endAt": "string",
- "quantityDays": 1.5,
- "quantitySeconds": 0,
- "days": [
- {
- "unit": "days",
- "date": "2026-10-01",
- "part": "fullDay",
- "quantityDays": 1.5,
- "quantitySeconds": 0,
- "reason": "workday",
- "state": "planned",
- "holidayPart": "firstHalf",
- "scheduledTargetSeconds": 0
}
], - "status": "pending",
- "systemReason": "ineligibleAtApproval",
- "decisionSource": "hrRecorded",
- "reason": "string",
- "attachmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "approval": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "steps": [
- {
- "sequence": 1,
- "status": "waiting",
- "approvers": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}
], - "decidedBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "decidedAt": "2026-10-01T08:15:00+02:00",
- "comment": "string"
}
]
}, - "restrictedPeriodId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "absenceLimitNote": "string",
- "enteredBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "contingentNote": "string",
- "cancelledFromDate": "2026-10-01",
- "refundedDays": 1.5,
- "refundedSeconds": 0,
- "cancellation": {
- "status": "pending",
- "fromDate": "2026-10-01",
- "reason": "string",
- "approval": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "steps": [
- {
- "sequence": 1,
- "status": "waiting",
- "approvers": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}
], - "decidedBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "decidedAt": "2026-10-01T08:15:00+02:00",
- "comment": "string"
}
]
}
}, - "createdAt": "2026-10-01T08:15:00+02:00",
- "origin": "user"
}Records a penalty of the core penalty account with the request as its source, under the rules of createEmployeePenalty: an amount, a leave deduction or both, HR always, a manager in scope only while the company access setting managersRecordPenalties is on, nobody for their own request (403). A request holds at most one active penalty (409). The request itself does not change; withdrawing the penalty gives a deduction back.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| date required | string <date> (Date) |
| reason required | string [ 1 .. 500 ] characters |
| amount | integer >= 1 Minor units of the company currency; needs the penalty kind |
object (PenaltyLeaveDeduction) |
{- "date": "2026-10-01",
- "reason": "string",
- "amount": 1,
- "leaveDeduction": {
- "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "quantity": 1,
- "unit": "days",
- "fromCarryOver": false
}
}{- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "date": "2026-10-01",
- "reason": "string",
- "amount": {
- "amountMinor": 1,
- "currency": "str"
}, - "leaveDeduction": {
- "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "quantity": 1,
- "unit": "days",
- "fromCarryOver": false
}, - "sources": [
- {
- "kind": "lateArrival",
- "reference": "string"
}
], - "origin": "user",
- "recordedBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "recordedAt": "2019-08-24T14:15:22Z",
- "withdrawal": {
- "at": "2019-08-24T14:15:22Z",
- "by": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "reason": "string"
}
}Submits a leaveCancellation to the approval engine; the approval rules for that subject decide whether anyone must approve. A no-approval rule applies synchronously, so the response already shows the final state. Refunds exactly the cancelled days. Taken days (up to today) can only be cancelled by HR.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| reason | string or null <= 1000 characters |
Date (string) or null First day to cancel. Defaults to tomorrow, or the start date of a future request. Days up to today are taken and only HR may cancel them. |
{- "reason": "string",
- "fromDate": "2026-10-01"
}{- "allowedActions": [
- "withdrawLeaveRequest"
], - "unit": "days",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "leaveType": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "colour": "string"
}, - "startDate": "2026-10-01",
- "startPart": "fullDay",
- "endDate": "2026-10-01",
- "endPart": "fullDay",
- "startAt": "string",
- "endAt": "string",
- "quantityDays": 1.5,
- "quantitySeconds": 0,
- "days": [
- {
- "unit": "days",
- "date": "2026-10-01",
- "part": "fullDay",
- "quantityDays": 1.5,
- "quantitySeconds": 0,
- "reason": "workday",
- "state": "planned",
- "holidayPart": "firstHalf",
- "scheduledTargetSeconds": 0
}
], - "status": "pending",
- "systemReason": "ineligibleAtApproval",
- "decisionSource": "hrRecorded",
- "reason": "string",
- "attachmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "approval": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "steps": [
- {
- "sequence": 1,
- "status": "waiting",
- "approvers": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}
], - "decidedBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "decidedAt": "2026-10-01T08:15:00+02:00",
- "comment": "string"
}
]
}, - "restrictedPeriodId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "absenceLimitNote": "string",
- "enteredBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "contingentNote": "string",
- "cancelledFromDate": "2026-10-01",
- "refundedDays": 1.5,
- "refundedSeconds": 0,
- "cancellation": {
- "status": "pending",
- "fromDate": "2026-10-01",
- "reason": "string",
- "approval": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "steps": [
- {
- "sequence": 1,
- "status": "waiting",
- "approvers": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}
], - "decidedBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "decidedAt": "2026-10-01T08:15:00+02:00",
- "comment": "string"
}
]
}
}, - "createdAt": "2026-10-01T08:15:00+02:00",
- "origin": "user"
}Ends the pending leaveCancellation approval as withdrawn; the request stays approved and the days stay booked. Changing a cancellation is a withdrawal followed by a new cancelLeaveRequest.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "allowedActions": [
- "withdrawLeaveRequest"
], - "unit": "days",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "leaveType": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "colour": "string"
}, - "startDate": "2026-10-01",
- "startPart": "fullDay",
- "endDate": "2026-10-01",
- "endPart": "fullDay",
- "startAt": "string",
- "endAt": "string",
- "quantityDays": 1.5,
- "quantitySeconds": 0,
- "days": [
- {
- "unit": "days",
- "date": "2026-10-01",
- "part": "fullDay",
- "quantityDays": 1.5,
- "quantitySeconds": 0,
- "reason": "workday",
- "state": "planned",
- "holidayPart": "firstHalf",
- "scheduledTargetSeconds": 0
}
], - "status": "pending",
- "systemReason": "ineligibleAtApproval",
- "decisionSource": "hrRecorded",
- "reason": "string",
- "attachmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "approval": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "steps": [
- {
- "sequence": 1,
- "status": "waiting",
- "approvers": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}
], - "decidedBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "decidedAt": "2026-10-01T08:15:00+02:00",
- "comment": "string"
}
]
}, - "restrictedPeriodId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "absenceLimitNote": "string",
- "enteredBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "contingentNote": "string",
- "cancelledFromDate": "2026-10-01",
- "refundedDays": 1.5,
- "refundedSeconds": 0,
- "cancellation": {
- "status": "pending",
- "fromDate": "2026-10-01",
- "reason": "string",
- "approval": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "steps": [
- {
- "sequence": 1,
- "status": "waiting",
- "approvers": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}
], - "decidedBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "decidedAt": "2026-10-01T08:15:00+02:00",
- "comment": "string"
}
]
}
}, - "createdAt": "2026-10-01T08:15:00+02:00",
- "origin": "user"
}Withdraws the pending request and submits the new one as a new approval instance superseding the old; if the new request is invalid, the old one stays pending.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| Idempotency-Key | string <uuid> Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 ( |
| employeeId | string <uuid> (Uuid) Defaults to the caller. Only HR may name another employee. |
| leaveTypeId required | string <uuid> (Uuid) |
| startDate required | string <date> (Date) |
| startPart | string Default: "fullDay" Enum: "fullDay" "firstHalf" "secondHalf" |
| endDate required | string <date> (Date) |
| endPart | string Default: "fullDay" Enum: "fullDay" "firstHalf" "secondHalf" |
| startAt | string (LocalDateTime) ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?$ A date and time of the company time zone without offset, YYYY-MM-DDTHH:MM (seconds optional). |
| endAt | string (LocalDateTime) ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?$ A date and time of the company time zone without offset, YYYY-MM-DDTHH:MM (seconds optional). |
| reason | string or null <= 1000 characters |
| attachmentIds | Array of strings <uuid> (Uuid) [ items <uuid > ] |
| overrideLeaveRules | boolean Default: false HR only; skips restricted periods, absence limits and request deadlines, recorded in the request history. Employees sending true get 403. |
| recordedAsDecided | boolean Default: false HR only, for another employee: records an absence that happened already as decided, without an approval. The whole request must lie in the past (its end date before today in the time zone of the company) and the reason is required; otherwise the response is 422 with the violation recordedAsDecided or reason. Anybody else sending true gets 403. The request is approved in the response, its decisionSource is hrRecorded and the history records the reason. A day before the opening balance of the employee is charged against that balance. |
{- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "startDate": "2026-10-01",
- "startPart": "fullDay",
- "endDate": "2026-10-01",
- "endPart": "fullDay",
- "startAt": "string",
- "endAt": "string",
- "reason": "string",
- "attachmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "overrideLeaveRules": false,
- "recordedAsDecided": false
}{- "allowedActions": [
- "withdrawLeaveRequest"
], - "unit": "days",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "leaveType": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "colour": "string"
}, - "startDate": "2026-10-01",
- "startPart": "fullDay",
- "endDate": "2026-10-01",
- "endPart": "fullDay",
- "startAt": "string",
- "endAt": "string",
- "quantityDays": 1.5,
- "quantitySeconds": 0,
- "days": [
- {
- "unit": "days",
- "date": "2026-10-01",
- "part": "fullDay",
- "quantityDays": 1.5,
- "quantitySeconds": 0,
- "reason": "workday",
- "state": "planned",
- "holidayPart": "firstHalf",
- "scheduledTargetSeconds": 0
}
], - "status": "pending",
- "systemReason": "ineligibleAtApproval",
- "decisionSource": "hrRecorded",
- "reason": "string",
- "attachmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "approval": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "steps": [
- {
- "sequence": 1,
- "status": "waiting",
- "approvers": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}
], - "decidedBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "decidedAt": "2026-10-01T08:15:00+02:00",
- "comment": "string"
}
]
}, - "restrictedPeriodId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "absenceLimitNote": "string",
- "enteredBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "contingentNote": "string",
- "cancelledFromDate": "2026-10-01",
- "refundedDays": 1.5,
- "refundedSeconds": 0,
- "cancellation": {
- "status": "pending",
- "fromDate": "2026-10-01",
- "reason": "string",
- "approval": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "steps": [
- {
- "sequence": 1,
- "status": "waiting",
- "approvers": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}
], - "decidedBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "decidedAt": "2026-10-01T08:15:00+02:00",
- "comment": "string"
}
]
}
}, - "createdAt": "2026-10-01T08:15:00+02:00",
- "origin": "user"
}| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "clashes": [
- {
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "category": "vacation",
- "leaveType": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "colour": "string"
}, - "startDate": "2026-10-01",
- "endDate": "2026-10-01",
- "startPart": "fullDay",
- "endPart": "fullDay"
}
], - "staffing": [
- {
- "date": "2026-10-01",
- "employees": 0,
- "absent": 0,
- "presentPercent": 0,
- "belowMinimum": true
}
]
}| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| Idempotency-Key | string <uuid> Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 ( |
| file required | string <binary> PDF, JPEG or PNG, at most 10 MB. |
| purpose required | string Enum: "leaveRequest" "sicknessCertificate" |
{- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "filename": "string",
- "contentType": "string",
- "sizeBytes": 10485760,
- "purpose": "leaveRequest",
- "linked": true,
- "createdAt": "2026-10-01T08:15:00+02:00"
}Medical certificates are readable by the employee and HR only.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "type": "../dictionary",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "../dictionary",
- "code": 0,
- "correlationId": "string",
- "violations": [
- {
- "propertyPath": "startDate",
- "message": "string",
- "code": "string",
- "existingEmployeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "suggestion": "string",
- "pair": "string",
- "scheme": "light",
- "ratio": "string",
- "required": "string",
- "proposal": "string",
- "requiredBy": "string",
- "line": 0,
- "column": 0,
- "placeholder": "string",
- "slot": "string",
- "language": "string",
- "maxBytes": 0,
- "formats": "string"
}
], - "dependents": [
- {
- "type": "string",
- "count": 1,
- "effect": "kept"
}
]
}| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "type": "../dictionary",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "../dictionary",
- "code": 0,
- "correlationId": "string",
- "violations": [
- {
- "propertyPath": "startDate",
- "message": "string",
- "code": "string",
- "existingEmployeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "suggestion": "string",
- "pair": "string",
- "scheme": "light",
- "ratio": "string",
- "required": "string",
- "proposal": "string",
- "requiredBy": "string",
- "line": 0,
- "column": 0,
- "placeholder": "string",
- "slot": "string",
- "language": "string",
- "maxBytes": 0,
- "formats": "string"
}
], - "dependents": [
- {
- "type": "string",
- "count": 1,
- "effect": "kept"
}
]
}Sort allow-list: startDate, employee.
| page | integer >= 1 Default: 1 |
| perPage | integer [ 1 .. 200 ] Default: 50 |
| sort | string Examples: sort=-startDate,employee Comma-separated property names; a leading "-" sorts descending. |
| scope | string (ListScope) Default: "self" Enum: "self" "team" "company" self: the caller. team: reports in scope, only when the company setting managerSeesSickness is on and without variant, certificate or continued-pay data. company: HR. Narrowed to what the caller may see. |
| employeeId | string <uuid> (Uuid) Examples: employeeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| status | string Enum: "open" "ended" "withdrawn" |
| period | string (ListPeriod) Enum: "thisMonth" "lastMonth" "thisYear" "thisYearOnward" "lastYear" "thisWeek" "lastWeek" "all" The days a list of dated entries answers for, resolved on the company's local day: thisMonth (the default), lastMonth, thisYear, thisYearOnward (from the first day of the year, no end), lastYear, thisWeek or lastWeek (Monday to Sunday), or all (every day, for a work queue of open items). Explicit |
| from | string <date> (Date) Examples: from=2026-10-01 Inclusive start date of the period. |
| to | string <date> (Date) Examples: to=2026-10-01 Inclusive end date of the period. |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "allowedActions": [
- "withdrawLeaveRequest"
], - "unit": "days",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "startDate": "2026-10-01",
- "expectedEndDate": "2026-10-01",
- "endDate": "2026-10-01",
- "openEnded": true,
- "status": "open",
- "confirmed": true,
- "workingDays": 1.5,
- "variant": "employee",
- "note": "string",
- "certificateRequiredFrom": "2026-10-01",
- "certificateStatus": "notRequired",
- "certificateSources": [
- "string"
], - "certificates": [
- {
- "fromDate": "2026-10-01",
- "toDate": "2026-10-01",
- "source": "string",
- "attachmentId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "recordedBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "recordedAt": "2026-10-01T08:15:00+02:00"
}
], - "continuedPay": {
- "startDate": "2026-10-01",
- "endsOn": "2026-10-01",
- "daysUsed": 0,
- "daysRemaining": 0,
- "continuationOfId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
}, - "refundedVacationDays": 1.5,
- "refundedVacationSeconds": 0,
- "createdAt": "2026-10-01T08:15:00+02:00"
}
], - "meta": {
- "page": 1,
- "perPage": 1,
- "totalItems": 0,
- "facets": {
- "property1": {
- "property1": 1,
- "property2": 1
}, - "property2": {
- "property1": 1,
- "property2": 1
}
}, - "groupBy": "string",
- "groups": [
- {
- "key": "string",
- "label": "string",
- "count": 1
}
]
}
}| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| Idempotency-Key | string <uuid> Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 ( |
| employeeId | string <uuid> (Uuid) Defaults to the caller. Only HR may name another employee. |
| startDate required | string <date> (Date) |
Date (string) or null | |
| openEnded | boolean Default: false |
| variant | string Default: "employee" Enum: "employee" "child" |
| note | string or null (SicknessNote) <= 500 characters A practical hint for HR, such as how the employee can be reached; never a diagnosis. Read and changed by the employee and HR only. Whitespace around it is dropped, and an empty note is null. |
| certificateAttachmentId | string <uuid> (Uuid) An unused upload of purpose |
{- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "startDate": "2026-10-01",
- "expectedEndDate": "2026-10-01",
- "openEnded": false,
- "variant": "employee",
- "note": "string",
- "certificateAttachmentId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}{- "allowedActions": [
- "withdrawLeaveRequest"
], - "unit": "days",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "startDate": "2026-10-01",
- "expectedEndDate": "2026-10-01",
- "endDate": "2026-10-01",
- "openEnded": true,
- "status": "open",
- "confirmed": true,
- "workingDays": 1.5,
- "variant": "employee",
- "note": "string",
- "certificateRequiredFrom": "2026-10-01",
- "certificateStatus": "notRequired",
- "certificateSources": [
- "string"
], - "certificates": [
- {
- "fromDate": "2026-10-01",
- "toDate": "2026-10-01",
- "source": "string",
- "attachmentId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "recordedBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "recordedAt": "2026-10-01T08:15:00+02:00"
}
], - "continuedPay": {
- "startDate": "2026-10-01",
- "endsOn": "2026-10-01",
- "daysUsed": 0,
- "daysRemaining": 0,
- "continuationOfId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
}, - "refundedVacationDays": 1.5,
- "refundedVacationSeconds": 0,
- "createdAt": "2026-10-01T08:15:00+02:00"
}| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "allowedActions": [
- "withdrawLeaveRequest"
], - "unit": "days",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "startDate": "2026-10-01",
- "expectedEndDate": "2026-10-01",
- "endDate": "2026-10-01",
- "openEnded": true,
- "status": "open",
- "confirmed": true,
- "workingDays": 1.5,
- "variant": "employee",
- "note": "string",
- "certificateRequiredFrom": "2026-10-01",
- "certificateStatus": "notRequired",
- "certificateSources": [
- "string"
], - "certificates": [
- {
- "fromDate": "2026-10-01",
- "toDate": "2026-10-01",
- "source": "string",
- "attachmentId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "recordedBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "recordedAt": "2026-10-01T08:15:00+02:00"
}
], - "continuedPay": {
- "startDate": "2026-10-01",
- "endsOn": "2026-10-01",
- "daysUsed": 0,
- "daysRemaining": 0,
- "continuationOfId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
}, - "refundedVacationDays": 1.5,
- "refundedVacationSeconds": 0,
- "createdAt": "2026-10-01T08:15:00+02:00"
}| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| If-Match required | string ETag of the representation being modified (optimistic locking). A stale value yields 412. |
Date (string) or null | |
| openEnded | boolean |
Uuid (string) or null HR only: links a continuation of the same illness. | |
| note | string or null (SicknessNote) <= 500 characters A practical hint for HR, such as how the employee can be reached; never a diagnosis. Read and changed by the employee and HR only. Whitespace around it is dropped, and an empty note is null. |
{- "expectedEndDate": "2026-10-01",
- "openEnded": true,
- "continuationOfId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "note": "string"
}{- "allowedActions": [
- "withdrawLeaveRequest"
], - "unit": "days",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "startDate": "2026-10-01",
- "expectedEndDate": "2026-10-01",
- "endDate": "2026-10-01",
- "openEnded": true,
- "status": "open",
- "confirmed": true,
- "workingDays": 1.5,
- "variant": "employee",
- "note": "string",
- "certificateRequiredFrom": "2026-10-01",
- "certificateStatus": "notRequired",
- "certificateSources": [
- "string"
], - "certificates": [
- {
- "fromDate": "2026-10-01",
- "toDate": "2026-10-01",
- "source": "string",
- "attachmentId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "recordedBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "recordedAt": "2026-10-01T08:15:00+02:00"
}
], - "continuedPay": {
- "startDate": "2026-10-01",
- "endsOn": "2026-10-01",
- "daysUsed": 0,
- "daysRemaining": 0,
- "continuationOfId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
}, - "refundedVacationDays": 1.5,
- "refundedVacationSeconds": 0,
- "createdAt": "2026-10-01T08:15:00+02:00"
}| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| endDate required | string <date> (Date) |
{- "endDate": "2026-10-01"
}{- "allowedActions": [
- "withdrawLeaveRequest"
], - "unit": "days",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "startDate": "2026-10-01",
- "expectedEndDate": "2026-10-01",
- "endDate": "2026-10-01",
- "openEnded": true,
- "status": "open",
- "confirmed": true,
- "workingDays": 1.5,
- "variant": "employee",
- "note": "string",
- "certificateRequiredFrom": "2026-10-01",
- "certificateStatus": "notRequired",
- "certificateSources": [
- "string"
], - "certificates": [
- {
- "fromDate": "2026-10-01",
- "toDate": "2026-10-01",
- "source": "string",
- "attachmentId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "recordedBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "recordedAt": "2026-10-01T08:15:00+02:00"
}
], - "continuedPay": {
- "startDate": "2026-10-01",
- "endsOn": "2026-10-01",
- "daysUsed": 0,
- "daysRemaining": 0,
- "continuationOfId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
}, - "refundedVacationDays": 1.5,
- "refundedVacationSeconds": 0,
- "createdAt": "2026-10-01T08:15:00+02:00"
}Upload by employee or HR; eAuRetrieved by HR only.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| fromDate required | string <date> (Date) |
| toDate required | string <date> (Date) |
| source required | string^[a-zA-Z]{1,30}$ upload, or an electronic certificate HR retrieved that the law of the person's office knows (the report's certificateSources), such as eAuRetrieved in Germany; another one is refused with 422. |
Uuid (string) or null Required for upload, null for an electronic certificate, which only HR records. |
{- "fromDate": "2026-10-01",
- "toDate": "2026-10-01",
- "source": "string",
- "attachmentId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}{- "fromDate": "2026-10-01",
- "toDate": "2026-10-01",
- "source": "string",
- "attachmentId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "recordedBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "recordedAt": "2026-10-01T08:15:00+02:00"
}HR only. Refunds approved vacation days on certified working days; repeating refunds only new days.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| comment | string or null <= 500 characters |
{- "comment": "string"
}{- "allowedActions": [
- "withdrawLeaveRequest"
], - "unit": "days",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "startDate": "2026-10-01",
- "expectedEndDate": "2026-10-01",
- "endDate": "2026-10-01",
- "openEnded": true,
- "status": "open",
- "confirmed": true,
- "workingDays": 1.5,
- "variant": "employee",
- "note": "string",
- "certificateRequiredFrom": "2026-10-01",
- "certificateStatus": "notRequired",
- "certificateSources": [
- "string"
], - "certificates": [
- {
- "fromDate": "2026-10-01",
- "toDate": "2026-10-01",
- "source": "string",
- "attachmentId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "recordedBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "recordedAt": "2026-10-01T08:15:00+02:00"
}
], - "continuedPay": {
- "startDate": "2026-10-01",
- "endsOn": "2026-10-01",
- "daysUsed": 0,
- "daysRemaining": 0,
- "continuationOfId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
}, - "refundedVacationDays": 1.5,
- "refundedVacationSeconds": 0,
- "createdAt": "2026-10-01T08:15:00+02:00"
}| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "allowedActions": [
- "withdrawLeaveRequest"
], - "unit": "days",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "startDate": "2026-10-01",
- "expectedEndDate": "2026-10-01",
- "endDate": "2026-10-01",
- "openEnded": true,
- "status": "open",
- "confirmed": true,
- "workingDays": 1.5,
- "variant": "employee",
- "note": "string",
- "certificateRequiredFrom": "2026-10-01",
- "certificateStatus": "notRequired",
- "certificateSources": [
- "string"
], - "certificates": [
- {
- "fromDate": "2026-10-01",
- "toDate": "2026-10-01",
- "source": "string",
- "attachmentId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "recordedBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "recordedAt": "2026-10-01T08:15:00+02:00"
}
], - "continuedPay": {
- "startDate": "2026-10-01",
- "endsOn": "2026-10-01",
- "daysUsed": 0,
- "daysRemaining": 0,
- "continuationOfId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
}, - "refundedVacationDays": 1.5,
- "refundedVacationSeconds": 0,
- "createdAt": "2026-10-01T08:15:00+02:00"
}Sort allow-list: createdAt.
| page | integer >= 1 Default: 1 |
| perPage | integer [ 1 .. 200 ] Default: 50 |
| sort | string Examples: sort=-startDate,employee Comma-separated property names; a leading "-" sorts descending. |
| scope | string (ListScope) Default: "self" Enum: "self" "team" "company" self: the caller. team: reports in scope and requests assigned to the caller. company: HR. Narrowed to what the caller may see. |
| employeeId | string <uuid> (Uuid) Examples: employeeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| leaveTypeId | string <uuid> (Uuid) Examples: leaveTypeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| status | string Enum: "pending" "approved" "rejected" "withdrawn" |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "allowedActions": [
- "withdrawLeaveRequest"
], - "unit": "days",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "leaveType": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "colour": "string"
}, - "days": 1.5,
- "seconds": 0,
- "reason": "string",
- "validUntil": "2026-10-01",
- "status": "pending",
- "systemReason": "ineligibleAtApproval",
- "grantedEntryId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "approval": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "steps": [
- {
- "sequence": 1,
- "status": "waiting",
- "approvers": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}
], - "decidedBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "decidedAt": "2026-10-01T08:15:00+02:00",
- "comment": "string"
}
]
}, - "createdAt": "2026-10-01T08:15:00+02:00"
}
], - "meta": {
- "page": 1,
- "perPage": 1,
- "totalItems": 0,
- "facets": {
- "property1": {
- "property1": 1,
- "property2": 1
}, - "property2": {
- "property1": 1,
- "property2": 1
}
}, - "groupBy": "string",
- "groups": [
- {
- "key": "string",
- "label": "string",
- "count": 1
}
]
}
}| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| Idempotency-Key | string <uuid> Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 ( |
| employeeId | string <uuid> (Uuid) Defaults to the caller. Only HR may name another employee. |
| leaveTypeId required | string <uuid> (Uuid) |
required | Days (number) or null >= 0.5 |
| seconds | integer or null days expressed in seconds when the policy unit is hours; null under days. |
| reason required | string [ 1 .. 1000 ] characters |
Date (string) or null Wished end of validity. Default: end of the current year. |
{- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "days": 1.5,
- "seconds": 0,
- "reason": "string",
- "validUntil": "2026-10-01"
}{- "allowedActions": [
- "withdrawLeaveRequest"
], - "unit": "days",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "leaveType": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "colour": "string"
}, - "days": 1.5,
- "seconds": 0,
- "reason": "string",
- "validUntil": "2026-10-01",
- "status": "pending",
- "systemReason": "ineligibleAtApproval",
- "grantedEntryId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "approval": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "steps": [
- {
- "sequence": 1,
- "status": "waiting",
- "approvers": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}
], - "decidedBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "decidedAt": "2026-10-01T08:15:00+02:00",
- "comment": "string"
}
]
}, - "createdAt": "2026-10-01T08:15:00+02:00"
}| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "allowedActions": [
- "withdrawLeaveRequest"
], - "unit": "days",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "leaveType": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "colour": "string"
}, - "days": 1.5,
- "seconds": 0,
- "reason": "string",
- "validUntil": "2026-10-01",
- "status": "pending",
- "systemReason": "ineligibleAtApproval",
- "grantedEntryId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "approval": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "steps": [
- {
- "sequence": 1,
- "status": "waiting",
- "approvers": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}
], - "decidedBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "decidedAt": "2026-10-01T08:15:00+02:00",
- "comment": "string"
}
]
}, - "createdAt": "2026-10-01T08:15:00+02:00"
}| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "allowedActions": [
- "withdrawLeaveRequest"
], - "unit": "days",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "leaveType": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "colour": "string"
}, - "days": 1.5,
- "seconds": 0,
- "reason": "string",
- "validUntil": "2026-10-01",
- "status": "pending",
- "systemReason": "ineligibleAtApproval",
- "grantedEntryId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "approval": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "steps": [
- {
- "sequence": 1,
- "status": "waiting",
- "approvers": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}
], - "decidedBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "decidedAt": "2026-10-01T08:15:00+02:00",
- "comment": "string"
}
]
}, - "createdAt": "2026-10-01T08:15:00+02:00"
}Sort allow-list: startDate, name. Visible to HR.
| page | integer >= 1 Default: 1 |
| perPage | integer [ 1 .. 200 ] Default: 50 |
| sort | string Examples: sort=-startDate,employee Comma-separated property names; a leading "-" sorts descending. |
| from | string <date> (Date) Examples: from=2026-10-01 Inclusive start date of the period. |
| to | string <date> (Date) Examples: to=2026-10-01 Inclusive end date of the period. |
| mode | string Enum: "block" "extraApproval" |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "name": "string",
- "startDate": "2026-10-01",
- "endDate": "2026-10-01",
- "reason": "string",
- "mode": "block",
- "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "jobPositionIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "leaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "excludedLeaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "exemptEmployeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}
], - "meta": {
- "page": 1,
- "perPage": 1,
- "totalItems": 0,
- "facets": {
- "property1": {
- "property1": 1,
- "property2": 1
}, - "property2": {
- "property1": 1,
- "property2": 1
}
}, - "groupBy": "string",
- "groups": [
- {
- "key": "string",
- "label": "string",
- "count": 1
}
]
}
}| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| Idempotency-Key | string <uuid> Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 ( |
| name required | string [ 1 .. 100 ] characters |
| startDate required | string <date> (Date) |
| endDate required | string <date> (Date) |
| reason required | string [ 1 .. 500 ] characters |
| mode required | string Enum: "block" "extraApproval" |
| departmentIds required | Array of strings <uuid> (Uuid) [ items <uuid > ] Including sub-departments. Several values of one dimension match any of them, the dimensions departmentIds, locationIds and jobPositionIds all have to match, an empty dimension matches everybody. |
| locationIds required | Array of strings <uuid> (Uuid) [ items <uuid > ] |
| jobPositionIds | Array of strings <uuid> (Uuid) [ items <uuid > ] Optional in the input; empty when left out. |
| leaveTypeIds required | Array of strings <uuid> (Uuid) [ items <uuid > ] The types the period applies to; empty: all types except sickness and the excluded ones. Never a sickness type (422 sicknessNeverRestricted). |
| excludedLeaveTypeIds | Array of strings <uuid> (Uuid) [ items <uuid > ] All types except these, when leaveTypeIds is empty; giving both is refused (422 typesOrExcluded). Optional in the input; empty when left out. |
| exemptEmployeeIds | Array of strings <uuid> (Uuid) [ items <uuid > ] Employees of the company whose requests the period does not check. Optional in the input; empty when left out. |
{- "name": "string",
- "startDate": "2026-10-01",
- "endDate": "2026-10-01",
- "reason": "string",
- "mode": "block",
- "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "jobPositionIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "leaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "excludedLeaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "exemptEmployeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
]
}{- "name": "string",
- "startDate": "2026-10-01",
- "endDate": "2026-10-01",
- "reason": "string",
- "mode": "block",
- "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "jobPositionIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "leaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "excludedLeaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "exemptEmployeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "name": "string",
- "startDate": "2026-10-01",
- "endDate": "2026-10-01",
- "reason": "string",
- "mode": "block",
- "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "jobPositionIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "leaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "excludedLeaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "exemptEmployeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| If-Match required | string ETag of the representation being modified (optimistic locking). A stale value yields 412. |
| name required | string [ 1 .. 100 ] characters |
| startDate required | string <date> (Date) |
| endDate required | string <date> (Date) |
| reason required | string [ 1 .. 500 ] characters |
| mode required | string Enum: "block" "extraApproval" |
| departmentIds required | Array of strings <uuid> (Uuid) [ items <uuid > ] Including sub-departments. Several values of one dimension match any of them, the dimensions departmentIds, locationIds and jobPositionIds all have to match, an empty dimension matches everybody. |
| locationIds required | Array of strings <uuid> (Uuid) [ items <uuid > ] |
| jobPositionIds | Array of strings <uuid> (Uuid) [ items <uuid > ] Optional in the input; empty when left out. |
| leaveTypeIds required | Array of strings <uuid> (Uuid) [ items <uuid > ] The types the period applies to; empty: all types except sickness and the excluded ones. Never a sickness type (422 sicknessNeverRestricted). |
| excludedLeaveTypeIds | Array of strings <uuid> (Uuid) [ items <uuid > ] All types except these, when leaveTypeIds is empty; giving both is refused (422 typesOrExcluded). Optional in the input; empty when left out. |
| exemptEmployeeIds | Array of strings <uuid> (Uuid) [ items <uuid > ] Employees of the company whose requests the period does not check. Optional in the input; empty when left out. |
{- "name": "string",
- "startDate": "2026-10-01",
- "endDate": "2026-10-01",
- "reason": "string",
- "mode": "block",
- "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "jobPositionIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "leaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "excludedLeaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "exemptEmployeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
]
}{- "name": "string",
- "startDate": "2026-10-01",
- "endDate": "2026-10-01",
- "reason": "string",
- "mode": "block",
- "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "jobPositionIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "leaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "excludedLeaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "exemptEmployeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| If-Match required | string ETag of the representation being modified (optimistic locking). A stale value yields 412. |
{- "type": "../dictionary",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "../dictionary",
- "code": 0,
- "correlationId": "string",
- "violations": [
- {
- "propertyPath": "startDate",
- "message": "string",
- "code": "string",
- "existingEmployeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "suggestion": "string",
- "pair": "string",
- "scheme": "light",
- "ratio": "string",
- "required": "string",
- "proposal": "string",
- "requiredBy": "string",
- "line": 0,
- "column": 0,
- "placeholder": "string",
- "slot": "string",
- "language": "string",
- "maxBytes": 0,
- "formats": "string"
}
], - "dependents": [
- {
- "type": "string",
- "count": 1,
- "effect": "kept"
}
]
}Creates a period with the name, reason, scope, type lists and mode of this one, from startDate and ending as many days later as this one does; validated like a new period. This period stays as it is.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| Idempotency-Key | string <uuid> Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 ( |
| startDate required | string <date> (Date) |
{- "startDate": "2026-10-01"
}{- "name": "string",
- "startDate": "2026-10-01",
- "endDate": "2026-10-01",
- "reason": "string",
- "mode": "block",
- "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "jobPositionIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "leaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "excludedLeaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "exemptEmployeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}By name. Visible to HR.
| page | integer >= 1 Default: 1 |
| perPage | integer [ 1 .. 200 ] Default: 50 |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "name": "string",
- "grouping": "department",
- "includeSubDepartments": false,
- "maxAbsent": 1,
- "toleranceDays": 1,
- "validFrom": "2026-10-01",
- "validTo": "2026-10-01",
- "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "jobPositionIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "leaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "excludedLeaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "exemptEmployeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}
], - "meta": {
- "page": 1,
- "perPage": 1,
- "totalItems": 0,
- "facets": {
- "property1": {
- "property1": 1,
- "property2": 1
}, - "property2": {
- "property1": 1,
- "property2": 1
}
}, - "groupBy": "string",
- "groups": [
- {
- "key": "string",
- "label": "string",
- "count": 1
}
]
}
}| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| Idempotency-Key | string <uuid> Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 ( |
| name required | string [ 1 .. 100 ] characters |
| grouping required | string Enum: "department" "reportingManager" department: every department in the scope is a team, led by its effective head. reportingManager: the direct reports of each manager in the scope are a team, led by the manager. |
| includeSubDepartments | boolean Default: false With grouping department, the members of sub-departments belong to the team; otherwise each sub-department is a team of its own. |
| maxAbsent | integer [ 1 .. 99 ] Default: 1 How many other members of a team may be away on a day before the day is full. |
| toleranceDays | integer [ 0 .. 30 ] Default: 1 A request with at most this many full working days needs the team lead's approval; with more it is refused (422 absenceLimit). |
Date (string) or null | |
Date (string) or null Not before validFrom. | |
| departmentIds | Array of strings <uuid> (Uuid) [ items <uuid > ] Departments (with sub-departments) whose people the limit covers; with all scope lists empty, the whole company. |
| locationIds | Array of strings <uuid> (Uuid) [ items <uuid > ] Locations; combined with the other dimensions as for restricted periods. |
| jobPositionIds | Array of strings <uuid> (Uuid) [ items <uuid > ] Job positions; combined with the other dimensions as for restricted periods. |
| leaveTypeIds | Array of strings <uuid> (Uuid) [ items <uuid > ] The types that count and are checked; empty: all types except sickness and the excluded ones. |
| excludedLeaveTypeIds | Array of strings <uuid> (Uuid) [ items <uuid > ] All types except these, when leaveTypeIds is empty; giving both is refused (422 typesOrExcluded). |
| exemptEmployeeIds | Array of strings <uuid> (Uuid) [ items <uuid > ] Employees whose requests the limit does not check; their absences still count for the others. |
{- "name": "string",
- "grouping": "department",
- "includeSubDepartments": false,
- "maxAbsent": 1,
- "toleranceDays": 1,
- "validFrom": "2026-10-01",
- "validTo": "2026-10-01",
- "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "jobPositionIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "leaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "excludedLeaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "exemptEmployeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
]
}{- "name": "string",
- "grouping": "department",
- "includeSubDepartments": false,
- "maxAbsent": 1,
- "toleranceDays": 1,
- "validFrom": "2026-10-01",
- "validTo": "2026-10-01",
- "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "jobPositionIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "leaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "excludedLeaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "exemptEmployeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "name": "string",
- "grouping": "department",
- "includeSubDepartments": false,
- "maxAbsent": 1,
- "toleranceDays": 1,
- "validFrom": "2026-10-01",
- "validTo": "2026-10-01",
- "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "jobPositionIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "leaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "excludedLeaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "exemptEmployeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| If-Match required | string ETag of the representation being modified (optimistic locking). A stale value yields 412. |
| name required | string [ 1 .. 100 ] characters |
| grouping required | string Enum: "department" "reportingManager" department: every department in the scope is a team, led by its effective head. reportingManager: the direct reports of each manager in the scope are a team, led by the manager. |
| includeSubDepartments | boolean Default: false With grouping department, the members of sub-departments belong to the team; otherwise each sub-department is a team of its own. |
| maxAbsent | integer [ 1 .. 99 ] Default: 1 How many other members of a team may be away on a day before the day is full. |
| toleranceDays | integer [ 0 .. 30 ] Default: 1 A request with at most this many full working days needs the team lead's approval; with more it is refused (422 absenceLimit). |
Date (string) or null | |
Date (string) or null Not before validFrom. | |
| departmentIds | Array of strings <uuid> (Uuid) [ items <uuid > ] Departments (with sub-departments) whose people the limit covers; with all scope lists empty, the whole company. |
| locationIds | Array of strings <uuid> (Uuid) [ items <uuid > ] Locations; combined with the other dimensions as for restricted periods. |
| jobPositionIds | Array of strings <uuid> (Uuid) [ items <uuid > ] Job positions; combined with the other dimensions as for restricted periods. |
| leaveTypeIds | Array of strings <uuid> (Uuid) [ items <uuid > ] The types that count and are checked; empty: all types except sickness and the excluded ones. |
| excludedLeaveTypeIds | Array of strings <uuid> (Uuid) [ items <uuid > ] All types except these, when leaveTypeIds is empty; giving both is refused (422 typesOrExcluded). |
| exemptEmployeeIds | Array of strings <uuid> (Uuid) [ items <uuid > ] Employees whose requests the limit does not check; their absences still count for the others. |
{- "name": "string",
- "grouping": "department",
- "includeSubDepartments": false,
- "maxAbsent": 1,
- "toleranceDays": 1,
- "validFrom": "2026-10-01",
- "validTo": "2026-10-01",
- "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "jobPositionIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "leaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "excludedLeaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "exemptEmployeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
]
}{- "name": "string",
- "grouping": "department",
- "includeSubDepartments": false,
- "maxAbsent": 1,
- "toleranceDays": 1,
- "validFrom": "2026-10-01",
- "validTo": "2026-10-01",
- "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "jobPositionIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "leaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "excludedLeaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "exemptEmployeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| If-Match required | string ETag of the representation being modified (optimistic locking). A stale value yields 412. |
{- "type": "../dictionary",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "../dictionary",
- "code": 0,
- "correlationId": "string",
- "violations": [
- {
- "propertyPath": "startDate",
- "message": "string",
- "code": "string",
- "existingEmployeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "suggestion": "string",
- "pair": "string",
- "scheme": "light",
- "ratio": "string",
- "required": "string",
- "proposal": "string",
- "requiredBy": "string",
- "line": 0,
- "column": 0,
- "placeholder": "string",
- "slot": "string",
- "language": "string",
- "maxBytes": 0,
- "formats": "string"
}
], - "dependents": [
- {
- "type": "string",
- "count": 1,
- "effect": "kept"
}
]
}By name. Visible to HR.
| page | integer >= 1 Default: 1 |
| perPage | integer [ 1 .. 200 ] Default: 50 |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "name": "string",
- "kind": "leadTime",
- "minLeadDays": 1,
- "deadline": "string",
- "minLengthDays": 1,
- "mode": "block",
- "approver": "reportingManager",
- "reminderDaysBefore": 1,
- "plannedSharePercent": 1,
- "validFrom": "2026-10-01",
- "validTo": "2026-10-01",
- "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "jobPositionIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "leaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "excludedLeaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "exemptEmployeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}
], - "meta": {
- "page": 1,
- "perPage": 1,
- "totalItems": 0,
- "facets": {
- "property1": {
- "property1": 1,
- "property2": 1
}, - "property2": {
- "property1": 1,
- "property2": 1
}
}, - "groupBy": "string",
- "groups": [
- {
- "key": "string",
- "label": "string",
- "count": 1
}
]
}
}| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| Idempotency-Key | string <uuid> Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 ( |
| name required | string [ 1 .. 100 ] characters |
| kind required | string Enum: "leadTime" "planningDeadline" leadTime: requested at least minLeadDays calendar days before the first day. planningDeadline: leave of a leave year requested by the deadline of that leave year. |
| minLeadDays | integer or null [ 1 .. 365 ] Required for leadTime; null for planningDeadline. |
| deadline | string or null^\d{2}-\d{2}$ Month and day as MM-DD, a day that exists in a leap year. Required for planningDeadline; null for leadTime. |
| minLengthDays | integer [ 1 .. 365 ] Default: 1 The deadline applies to requests of at least this many working days. |
| mode required | string Enum: "block" "extraApproval" block: a late request is refused (422 requestDeadline). extraApproval: it needs the approver as well. |
| approver | string or null Enum: "reportingManager" "departmentHead" "hr" null Who approves a late request as well under extraApproval; reportingManager when left out. Null under block. |
| reminderDaysBefore | integer or null [ 1 .. 90 ] For planningDeadline, given together with plannedSharePercent; so many days before the deadline, employees in scope who planned less than the share of their year are reminded (leave.planningReminder). |
| plannedSharePercent | integer or null [ 1 .. 100 ] Used, pending and planned leave of the year as a share of the entitlement below which the reminder goes out. |
Date (string) or null | |
Date (string) or null Not before validFrom. | |
| departmentIds | Array of strings <uuid> (Uuid) [ items <uuid > ] Departments (with sub-departments) whose people the deadline covers; with all scope lists empty, the whole company. |
| locationIds | Array of strings <uuid> (Uuid) [ items <uuid > ] Locations; combined with the other dimensions as for restricted periods. |
| jobPositionIds | Array of strings <uuid> (Uuid) [ items <uuid > ] Job positions; combined with the other dimensions as for restricted periods. |
| leaveTypeIds | Array of strings <uuid> (Uuid) [ items <uuid > ] The types the deadline applies to; empty: all types except sickness and the excluded ones. |
| excludedLeaveTypeIds | Array of strings <uuid> (Uuid) [ items <uuid > ] All types except these, when leaveTypeIds is empty; giving both is refused (422 typesOrExcluded). |
| exemptEmployeeIds | Array of strings <uuid> (Uuid) [ items <uuid > ] Employees whose requests the deadline does not check. |
{- "name": "string",
- "kind": "leadTime",
- "minLeadDays": 1,
- "deadline": "string",
- "minLengthDays": 1,
- "mode": "block",
- "approver": "reportingManager",
- "reminderDaysBefore": 1,
- "plannedSharePercent": 1,
- "validFrom": "2026-10-01",
- "validTo": "2026-10-01",
- "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "jobPositionIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "leaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "excludedLeaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "exemptEmployeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
]
}{- "name": "string",
- "kind": "leadTime",
- "minLeadDays": 1,
- "deadline": "string",
- "minLengthDays": 1,
- "mode": "block",
- "approver": "reportingManager",
- "reminderDaysBefore": 1,
- "plannedSharePercent": 1,
- "validFrom": "2026-10-01",
- "validTo": "2026-10-01",
- "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "jobPositionIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "leaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "excludedLeaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "exemptEmployeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "name": "string",
- "kind": "leadTime",
- "minLeadDays": 1,
- "deadline": "string",
- "minLengthDays": 1,
- "mode": "block",
- "approver": "reportingManager",
- "reminderDaysBefore": 1,
- "plannedSharePercent": 1,
- "validFrom": "2026-10-01",
- "validTo": "2026-10-01",
- "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "jobPositionIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "leaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "excludedLeaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "exemptEmployeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| If-Match required | string ETag of the representation being modified (optimistic locking). A stale value yields 412. |
| name required | string [ 1 .. 100 ] characters |
| kind required | string Enum: "leadTime" "planningDeadline" leadTime: requested at least minLeadDays calendar days before the first day. planningDeadline: leave of a leave year requested by the deadline of that leave year. |
| minLeadDays | integer or null [ 1 .. 365 ] Required for leadTime; null for planningDeadline. |
| deadline | string or null^\d{2}-\d{2}$ Month and day as MM-DD, a day that exists in a leap year. Required for planningDeadline; null for leadTime. |
| minLengthDays | integer [ 1 .. 365 ] Default: 1 The deadline applies to requests of at least this many working days. |
| mode required | string Enum: "block" "extraApproval" block: a late request is refused (422 requestDeadline). extraApproval: it needs the approver as well. |
| approver | string or null Enum: "reportingManager" "departmentHead" "hr" null Who approves a late request as well under extraApproval; reportingManager when left out. Null under block. |
| reminderDaysBefore | integer or null [ 1 .. 90 ] For planningDeadline, given together with plannedSharePercent; so many days before the deadline, employees in scope who planned less than the share of their year are reminded (leave.planningReminder). |
| plannedSharePercent | integer or null [ 1 .. 100 ] Used, pending and planned leave of the year as a share of the entitlement below which the reminder goes out. |
Date (string) or null | |
Date (string) or null Not before validFrom. | |
| departmentIds | Array of strings <uuid> (Uuid) [ items <uuid > ] Departments (with sub-departments) whose people the deadline covers; with all scope lists empty, the whole company. |
| locationIds | Array of strings <uuid> (Uuid) [ items <uuid > ] Locations; combined with the other dimensions as for restricted periods. |
| jobPositionIds | Array of strings <uuid> (Uuid) [ items <uuid > ] Job positions; combined with the other dimensions as for restricted periods. |
| leaveTypeIds | Array of strings <uuid> (Uuid) [ items <uuid > ] The types the deadline applies to; empty: all types except sickness and the excluded ones. |
| excludedLeaveTypeIds | Array of strings <uuid> (Uuid) [ items <uuid > ] All types except these, when leaveTypeIds is empty; giving both is refused (422 typesOrExcluded). |
| exemptEmployeeIds | Array of strings <uuid> (Uuid) [ items <uuid > ] Employees whose requests the deadline does not check. |
{- "name": "string",
- "kind": "leadTime",
- "minLeadDays": 1,
- "deadline": "string",
- "minLengthDays": 1,
- "mode": "block",
- "approver": "reportingManager",
- "reminderDaysBefore": 1,
- "plannedSharePercent": 1,
- "validFrom": "2026-10-01",
- "validTo": "2026-10-01",
- "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "jobPositionIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "leaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "excludedLeaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "exemptEmployeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
]
}{- "name": "string",
- "kind": "leadTime",
- "minLeadDays": 1,
- "deadline": "string",
- "minLengthDays": 1,
- "mode": "block",
- "approver": "reportingManager",
- "reminderDaysBefore": 1,
- "plannedSharePercent": 1,
- "validFrom": "2026-10-01",
- "validTo": "2026-10-01",
- "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "jobPositionIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "leaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "excludedLeaveTypeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "exemptEmployeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| If-Match required | string ETag of the representation being modified (optimistic locking). A stale value yields 412. |
{- "type": "../dictionary",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "../dictionary",
- "code": 0,
- "correlationId": "string",
- "violations": [
- {
- "propertyPath": "startDate",
- "message": "string",
- "code": "string",
- "existingEmployeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "suggestion": "string",
- "pair": "string",
- "scheme": "light",
- "ratio": "string",
- "required": "string",
- "proposal": "string",
- "requiredBy": "string",
- "line": 0,
- "column": 0,
- "placeholder": "string",
- "slot": "string",
- "language": "string",
- "maxBytes": 0,
- "formats": "string"
}
], - "dependents": [
- {
- "type": "string",
- "count": 1,
- "effect": "kept"
}
]
}By first day. HR sees every closure, a manager in scope only the published ones.
| page | integer >= 1 Default: 1 |
| perPage | integer [ 1 .. 200 ] Default: 50 |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "name": "string",
- "firstDay": "2026-10-01",
- "lastDay": "2026-10-01",
- "reason": "string",
- "note": "string",
- "payment": "vacation",
- "shortfall": "negativeBalance",
- "optOutUntil": "2026-10-01",
- "optOutApproval": "reportingManager",
- "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "jobPositionIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "exemptEmployeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "draft"
}
], - "meta": {
- "page": 1,
- "perPage": 1,
- "totalItems": 0,
- "facets": {
- "property1": {
- "property1": 1,
- "property2": 1
}, - "property2": {
- "property1": 1,
- "property2": 1
}
}, - "groupBy": "string",
- "groups": [
- {
- "key": "string",
- "label": "string",
- "count": 1
}
]
}
}| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| Idempotency-Key | string <uuid> Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 ( |
| name required | string [ 1 .. 100 ] characters |
| firstDay required | string <date> (Date) |
| lastDay required | string <date> (Date) Not before firstDay. |
| reason required | string [ 1 .. 500 ] characters Told to the employees with their booked days. |
| note | string or null <= 1000 characters For HR, such as the works council's agreement. |
| payment | string Default: "vacation" Enum: "vacation" "company" "workingTimeAccount" Who pays the days: taken from vacation days, given by the company, or taken from the working-time account. |
| shortfall | string Default: "negativeBalance" Enum: "negativeBalance" "unpaid" "workingTimeAccount" What happens to days the vacation balance does not cover under payment vacation. |
Date (string) or null Until when employees may ask to work instead; not after firstDay. Null when nobody may. | |
| optOutApproval | string Default: "reportingManager" Enum: "reportingManager" "none" Whether working instead needs the reporting manager's approval. |
| departmentIds | Array of strings <uuid> (Uuid) [ items <uuid > ] Departments (with sub-departments) whose people the closure covers; with all scope lists empty, the whole company. |
| locationIds | Array of strings <uuid> (Uuid) [ items <uuid > ] Locations; combined with the other dimensions as for restricted periods. |
| jobPositionIds | Array of strings <uuid> (Uuid) [ items <uuid > ] Job positions; combined with the other dimensions as for restricted periods. |
| exemptEmployeeIds | Array of strings <uuid> (Uuid) [ items <uuid > ] Employees the closure leaves out. |
{- "name": "string",
- "firstDay": "2026-10-01",
- "lastDay": "2026-10-01",
- "reason": "string",
- "note": "string",
- "payment": "vacation",
- "shortfall": "negativeBalance",
- "optOutUntil": "2026-10-01",
- "optOutApproval": "reportingManager",
- "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "jobPositionIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "exemptEmployeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
]
}{- "name": "string",
- "firstDay": "2026-10-01",
- "lastDay": "2026-10-01",
- "reason": "string",
- "note": "string",
- "payment": "vacation",
- "shortfall": "negativeBalance",
- "optOutUntil": "2026-10-01",
- "optOutApproval": "reportingManager",
- "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "jobPositionIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "exemptEmployeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "draft"
}A manager in scope reads a published closure; drafts and cancelled closures answer 404 for them.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "name": "string",
- "firstDay": "2026-10-01",
- "lastDay": "2026-10-01",
- "reason": "string",
- "note": "string",
- "payment": "vacation",
- "shortfall": "negativeBalance",
- "optOutUntil": "2026-10-01",
- "optOutApproval": "reportingManager",
- "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "jobPositionIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "exemptEmployeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "draft"
}| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| If-Match required | string ETag of the representation being modified (optimistic locking). A stale value yields 412. |
| name required | string [ 1 .. 100 ] characters |
| firstDay required | string <date> (Date) |
| lastDay required | string <date> (Date) Not before firstDay. |
| reason required | string [ 1 .. 500 ] characters Told to the employees with their booked days. |
| note | string or null <= 1000 characters For HR, such as the works council's agreement. |
| payment | string Default: "vacation" Enum: "vacation" "company" "workingTimeAccount" Who pays the days: taken from vacation days, given by the company, or taken from the working-time account. |
| shortfall | string Default: "negativeBalance" Enum: "negativeBalance" "unpaid" "workingTimeAccount" What happens to days the vacation balance does not cover under payment vacation. |
Date (string) or null Until when employees may ask to work instead; not after firstDay. Null when nobody may. | |
| optOutApproval | string Default: "reportingManager" Enum: "reportingManager" "none" Whether working instead needs the reporting manager's approval. |
| departmentIds | Array of strings <uuid> (Uuid) [ items <uuid > ] Departments (with sub-departments) whose people the closure covers; with all scope lists empty, the whole company. |
| locationIds | Array of strings <uuid> (Uuid) [ items <uuid > ] Locations; combined with the other dimensions as for restricted periods. |
| jobPositionIds | Array of strings <uuid> (Uuid) [ items <uuid > ] Job positions; combined with the other dimensions as for restricted periods. |
| exemptEmployeeIds | Array of strings <uuid> (Uuid) [ items <uuid > ] Employees the closure leaves out. |
{- "name": "string",
- "firstDay": "2026-10-01",
- "lastDay": "2026-10-01",
- "reason": "string",
- "note": "string",
- "payment": "vacation",
- "shortfall": "negativeBalance",
- "optOutUntil": "2026-10-01",
- "optOutApproval": "reportingManager",
- "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "jobPositionIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "exemptEmployeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
]
}{- "name": "string",
- "firstDay": "2026-10-01",
- "lastDay": "2026-10-01",
- "reason": "string",
- "note": "string",
- "payment": "vacation",
- "shortfall": "negativeBalance",
- "optOutUntil": "2026-10-01",
- "optOutApproval": "reportingManager",
- "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "jobPositionIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "exemptEmployeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "draft"
}Publishes a draft and books its days, in the background, as approved leave for everyone it covers who is employed during it, of the active leave type for the payment; days another request holds are left out. 422 noLeaveType on payment when the company keeps no such type; 409 when the closure is no draft.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| If-Match required | string ETag of the representation being modified (optimistic locking). A stale value yields 412. |
{- "name": "string",
- "firstDay": "2026-10-01",
- "lastDay": "2026-10-01",
- "reason": "string",
- "note": "string",
- "payment": "vacation",
- "shortfall": "negativeBalance",
- "optOutUntil": "2026-10-01",
- "optOutApproval": "reportingManager",
- "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "jobPositionIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "exemptEmployeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "draft"
}Cancels a draft or a published closure. The days of a published one are given back from today on, in the background; earlier days stay taken. 409 when the closure is cancelled already.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| If-Match required | string ETag of the representation being modified (optimistic locking). A stale value yields 412. |
{- "name": "string",
- "firstDay": "2026-10-01",
- "lastDay": "2026-10-01",
- "reason": "string",
- "note": "string",
- "payment": "vacation",
- "shortfall": "negativeBalance",
- "optOutUntil": "2026-10-01",
- "optOutApproval": "reportingManager",
- "departmentIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "locationIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "jobPositionIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "exemptEmployeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "draft"
}The employees whose vacation balance did not cover the days booked for the closure, with the days it lacked and what was done with them. Visible to HR.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| page | integer >= 1 Default: 1 |
| perPage | integer [ 1 .. 200 ] Default: 50 |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "unit": "days",
- "days": 1.5,
- "seconds": 0,
- "handling": "negativeBalance"
}
], - "meta": {
- "page": 1,
- "perPage": 1,
- "totalItems": 0,
- "facets": {
- "property1": {
- "property1": 1,
- "property2": 1
}, - "property2": {
- "property1": 1,
- "property2": 1
}
}, - "groupBy": "string",
- "groups": [
- {
- "key": "string",
- "label": "string",
- "count": 1
}
]
}
}HR sees every request, a manager those of the people in their scope.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| page | integer >= 1 Default: 1 |
| perPage | integer [ 1 .. 200 ] Default: 50 |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "closureId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "fromDate": "2026-10-01",
- "toDate": "2026-10-01",
- "comment": "string",
- "status": "pending"
}
], - "meta": {
- "page": 1,
- "perPage": 1,
- "totalItems": 0,
- "facets": {
- "property1": {
- "property1": 1,
- "property2": 1
}, - "property2": {
- "property1": 1,
- "property2": 1
}
}, - "groupBy": "string",
- "groups": [
- {
- "key": "string",
- "label": "string",
- "count": 1
}
]
}
}An employee asks for days of a published closure until its optOutUntil (422 optOutDeadline after it); their reporting manager decides as subject closureOptOut unless the closure has optOutApproval none. A manager in scope or HR enters it for an employee (employeeId) until the days, approved at once. Approved days are given back and become working days. 422 outsideClosure for days outside the closure, overlap for days of another active request to work instead.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| Idempotency-Key | string <uuid> Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 ( |
| employeeId | string <uuid> (Uuid) For a manager in scope or HR entering it for somebody; the caller when left out. |
| fromDate required | string <date> (Date) |
| toDate required | string <date> (Date) |
| comment | string or null <= 500 characters |
{- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "fromDate": "2026-10-01",
- "toDate": "2026-10-01",
- "comment": "string"
}{- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "closureId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "fromDate": "2026-10-01",
- "toDate": "2026-10-01",
- "comment": "string",
- "status": "pending"
}A pending request at any time; an approved one by the employee until the closure's optOutUntil, by HR before its days. The days are booked again. 409 when it can no longer be withdrawn.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "closureId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "fromDate": "2026-10-01",
- "toDate": "2026-10-01",
- "comment": "string",
- "status": "pending"
}The published closures that cover the caller, with the days booked for them and their requests to work instead.
| page | integer >= 1 Default: 1 |
| perPage | integer [ 1 .. 200 ] Default: 50 |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "activeOptOutId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "firstDay": "2026-10-01",
- "lastDay": "2026-10-01",
- "reason": "string",
- "payment": "vacation",
- "optOutUntil": "2026-10-01",
- "bookedDays": 0,
- "optOuts": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "fromDate": "2026-10-01",
- "toDate": "2026-10-01",
- "status": "pending"
}
]
}
], - "meta": {
- "page": 1,
- "perPage": 1,
- "totalItems": 0,
- "facets": {
- "property1": {
- "property1": 1,
- "property2": 1
}, - "property2": {
- "property1": 1,
- "property2": 1
}
}, - "groupBy": "string",
- "groups": [
- {
- "key": "string",
- "label": "string",
- "count": 1
}
]
}
}Colleagues see "absent" (no type, category or reason), except approved training, which carries the category education; limited by the company setting colleagueAbsenceVisibility. Managers in scope see leave types and sickness as sickness only when managerSeesSickness is on; HR sees everything. anyEmployee access therefore returns no work data beyond absent, training and present.
| from required | string <date> (Date) Examples: from=2026-10-01 Inclusive start; the period is at most 366 days. |
| to required | string <date> (Date) Examples: to=2026-10-01 Inclusive end. |
| scope | string (ListScope) Default: "self" Enum: "self" "team" "company" self: the caller. team: a manager with the reports in scope; for an employee without reports the employee and the colleagues of the same manager. company: what the caller may see; HR sees everybody. Narrowed to what the caller may see; colleagues see "absent", or training as |
| departmentId | string <uuid> (Uuid) Examples: departmentId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b HR only; default is the caller's department. |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "from": "2026-10-01",
- "to": "2026-10-01",
- "scope": "self",
- "availableScopes": [
- "self"
], - "people": [
- {
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "days": [
- {
- "date": "2026-10-01",
- "kind": "workday",
- "holidayPart": "firstHalf",
- "holiday": "string"
}
]
}
], - "items": [
- {
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "category": "vacation",
- "leaveType": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "colour": "string"
}, - "startDate": "2026-10-01",
- "endDate": "2026-10-01",
- "startPart": "fullDay",
- "endPart": "fullDay",
- "status": "approved",
- "requestId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "sicknessReportId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "closure": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string"
}
}
], - "staffing": [
- {
- "date": "2026-10-01",
- "employees": 0,
- "absent": 0,
- "presentPercent": 0,
- "belowMinimum": true
}
]
}| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "scope": "self",
- "label": "string",
- "createdAt": "2026-10-01T08:15:00+02:00",
- "lastUsedAt": "2026-10-01T08:15:00+02:00"
}
]
}| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| Idempotency-Key | string <uuid> Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 ( |
| scope required | string Enum: "self" "team" "colleagues" "company" "publicHolidays" Feed kind: self (own absences), team (a manager's reports, detailed), colleagues (absent-only within colleagueAbsenceVisibility), company (HR, detailed), publicHolidays (holidays of the owner's location). |
| label | string <= 100 characters |
{- "scope": "self",
- "label": "string"
}{- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "scope": "self",
- "label": "string",
- "createdAt": "2026-10-01T08:15:00+02:00",
- "lastUsedAt": "2026-10-01T08:15:00+02:00",
- "token": "string",
}| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "type": "../dictionary",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "../dictionary",
- "code": 0,
- "correlationId": "string",
- "violations": [
- {
- "propertyPath": "startDate",
- "message": "string",
- "code": "string",
- "existingEmployeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "suggestion": "string",
- "pair": "string",
- "scheme": "light",
- "ratio": "string",
- "required": "string",
- "proposal": "string",
- "requiredBy": "string",
- "line": 0,
- "column": 0,
- "placeholder": "string",
- "slot": "string",
- "language": "string",
- "maxBytes": 0,
- "formats": "string"
}
], - "dependents": [
- {
- "type": "string",
- "count": 1,
- "effect": "kept"
}
]
}Public: no login, the secret token is the credential. Detail follows the current rights of the token owner, with the same visibility rules as the calendar (managerSeesSickness, colleagueAbsenceVisibility); texts use the owner saved language. Unknown or revoked tokens answer 404.
| token required | string Secret feed token. |
{- "type": "../dictionary",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "../dictionary",
- "code": 0,
- "correlationId": "string",
- "violations": [
- {
- "propertyPath": "startDate",
- "message": "string",
- "code": "string",
- "existingEmployeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "suggestion": "string",
- "pair": "string",
- "scheme": "light",
- "ratio": "string",
- "required": "string",
- "proposal": "string",
- "requiredBy": "string",
- "line": 0,
- "column": 0,
- "placeholder": "string",
- "slot": "string",
- "language": "string",
- "maxBytes": 0,
- "formats": "string"
}
], - "dependents": [
- {
- "type": "string",
- "count": 1,
- "effect": "kept"
}
]
}Remaining, planned and pending vacation and entries expiring within 90 days, in days or hours as the leave policy's unit says.
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "unit": "days",
- "leaveTypeName": "string",
- "remaining": {
- "days": 1.5,
- "seconds": 0
}, - "planned": {
- "days": 1.5,
- "seconds": 0
}, - "pending": {
- "days": 1.5,
- "seconds": 0
}, - "expiringSoon": [
- {
- "quantity": {
- "days": 1.5,
- "seconds": 0
}, - "validUntil": "2026-10-01"
}
]
}Own approved and pending absences within the horizon.
| horizonDays | integer [ 7 .. 365 ] Default: 60 Look-ahead in days. |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "horizonDays": 0,
- "items": [
- {
- "from": "2026-10-01",
- "to": "2026-10-01",
- "category": "vacation",
- "part": "fullDay",
- "status": "approved",
- "href": "string"
}
]
}The balance figures of every leave account the caller holds, in the unit of each policy, for the leave year that contains today.
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "date": "2026-10-01",
- "items": [
- {
- "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "leaveTypeName": "string",
- "unit": "days",
- "entitled": {
- "days": 1.5,
- "seconds": 0
}, - "used": {
- "days": 1.5,
- "seconds": 0
}, - "remaining": {
- "days": 1.5,
- "seconds": 0
}
}
]
}The caller's last 10 leave requests, newest first, with leave type, days (half days 0.5) and status. It serves only the caller; any parameter is answered with 400.
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "leaveType": "string",
- "startDate": "2026-10-01",
- "endDate": "2026-10-01",
- "days": 0,
- "status": "pending"
}
]
}The caller's absence days per month and category of the last 12 months, the current month included, and their last 10 absences that have begun. It serves only the caller; an employeeId parameter is answered with 400.
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "from": "2026-10-01",
- "to": "2026-10-01",
- "months": [
- {
- "month": "string",
- "category": "vacation",
- "days": 0
}
], - "lastAbsences": [
- {
- "from": "2026-10-01",
- "to": "2026-10-01",
- "category": "vacation",
- "days": 0
}
]
}Absences of the scope in the week starting at weekStart. Scope rules as getDashboardTeamPresence.
| scope | string Default: "team" Enum: "team" "company" team returns the caller's reports (managers); company returns everybody (HR only, otherwise 403). |
| weekStart | string <date> (Date) Examples: weekStart=2026-10-01 Monday of the week; defaults to the current week. |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "weekStart": "2026-10-01",
- "items": [
- {
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "from": "2026-10-01",
- "to": "2026-10-01",
- "part": "fullDay",
- "category": "vacation",
- "href": "string"
}
]
}The attendance view of getAbsenceCalendar with scope team for a week and the next, Monday to Sunday, at the same detail; the current week and the next unless weekStart is given.
| weekStart | string <date> (Date) Examples: weekStart=2026-10-01 A day of the first week, which starts on its Monday; defaults to the current week. |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "from": "2026-10-01",
- "to": "2026-10-01",
- "scope": "self",
- "availableScopes": [
- "self"
], - "people": [
- {
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "days": [
- {
- "date": "2026-10-01",
- "kind": "workday",
- "holidayPart": "firstHalf",
- "holiday": "string"
}
]
}
], - "items": [
- {
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "category": "vacation",
- "leaveType": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "colour": "string"
}, - "startDate": "2026-10-01",
- "endDate": "2026-10-01",
- "startPart": "fullDay",
- "endPart": "fullDay",
- "status": "approved",
- "requestId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "sicknessReportId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "closure": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string"
}
}
], - "staffing": [
- {
- "date": "2026-10-01",
- "employees": 0,
- "absent": 0,
- "presentPercent": 0,
- "belowMinimum": true
}
]
}Sickness reports whose certificate is overdue. No diagnosis is ever contained.
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "totalCount": 0,
- "items": [
- {
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "sicknessReportId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "sickSince": "2026-10-01",
- "certificateDueDate": "2026-10-01",
- "daysOverdue": 1
}
]
}Employees with leave expiring within the horizon, and whether the reminder is due.
| horizonDays | integer [ 7 .. 365 ] Default: 60 Look-ahead in days. |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "horizonDays": 0,
- "totalCount": 0,
- "items": [
- {
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "leaveTypeName": "string",
- "quantity": {
- "days": 1.5,
- "seconds": 0
}, - "validUntil": "2026-10-01",
- "reminderDue": true
}
]
}Pending leave and allocation requests, the approved absence days of the period and the people absent today. The period is the current month unless given, and at most 366 days long.
| from | string <date> (Date) Examples: from=2026-10-01 Inclusive start date of the period. |
| to | string <date> (Date) Examples: to=2026-10-01 Inclusive end date of the period. |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "from": "2026-10-01",
- "to": "2026-10-01",
- "pendingLeaveRequests": 0,
- "pendingAllocationRequests": 0,
- "approvedAbsenceDays": 0,
- "absentToday": 0
}Absence days per month and category of the last 12 months, the current month included.
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "from": "2026-10-01",
- "to": "2026-10-01",
- "items": [
- {
- "month": "string",
- "category": "vacation",
- "days": 0
}
]
}Absence days per department in the period (the current month unless given, at most 366 days), each employee in the department of the last day of the period or today, whichever is earlier.
| from | string <date> (Date) Examples: from=2026-10-01 Inclusive start date of the period. |
| to | string <date> (Date) Examples: to=2026-10-01 Inclusive end date of the period. |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "from": "2026-10-01",
- "to": "2026-10-01",
- "items": [
- {
- "departmentId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "departmentName": "string",
- "days": 0
}
]
}Absence days per leave type in the period (the current month unless given, at most 366 days), with the totals by payroll classification.
| from | string <date> (Date) Examples: from=2026-10-01 Inclusive start date of the period. |
| to | string <date> (Date) Examples: to=2026-10-01 Inclusive end date of the period. |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "from": "2026-10-01",
- "to": "2026-10-01",
- "items": [
- {
- "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "leaveTypeName": "string",
- "category": "vacation",
- "payrollClass": "paid",
- "days": 0
}
], - "totals": {
- "paid": 0,
- "unpaid": 0,
- "partial": 0
}
}Used against entitled days of the ledger types in days per department, in the leave year that contains today; accounts kept in hours are not included.
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "date": "2026-10-01",
- "items": [
- {
- "departmentId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "departmentName": "string",
- "entitledDays": 0,
- "usedDays": 0,
- "percent": 0
}
]
}Absence days per weekday in the period (the current month unless given, at most 366 days), sickness and sick-child days excluded; those appear only in the aggregated sickness report.
| from | string <date> (Date) Examples: from=2026-10-01 Inclusive start date of the period. |
| to | string <date> (Date) Examples: to=2026-10-01 Inclusive end date of the period. |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "from": "2026-10-01",
- "to": "2026-10-01",
- "items": [
- {
- "weekday": 1,
- "days": 0
}, - {
- "weekday": 1,
- "days": 0
}, - {
- "weekday": 1,
- "days": 0
}, - {
- "weekday": 1,
- "days": 0
}, - {
- "weekday": 1,
- "days": 0
}, - {
- "weekday": 1,
- "days": 0
}, - {
- "weekday": 1,
- "days": 0
}
]
}The 10 employees with the most absence days in the period (the current month unless given, at most 366 days), sickness and sick-child days excluded.
| from | string <date> (Date) Examples: from=2026-10-01 Inclusive start date of the period. |
| to | string <date> (Date) Examples: to=2026-10-01 Inclusive end date of the period. |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "from": "2026-10-01",
- "to": "2026-10-01",
- "items": [
- {
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "days": 0
}
]
}