adsum API, working-time package (1.0.0)

Download OpenAPI specification:

License: GPL-2.0-or-later

The operations of the working-time package, merged into the published contract when the package is installed (see WebVision\Adsum\Core\Shared\Api\Contract\OpenApiDocument). Linted on its own.

Working Time

Working-time models, assignments, rotations, rosters, schedule change requests.

Read the company working-time defaults

Authorizations:
bearerAuthsessionCookie
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "defaultLateStartGraceSeconds": 0,
  • "defaultEarlyEndGraceSeconds": 0,
  • "defaultStartToleranceSeconds": 0,
  • "defaultEndToleranceSeconds": 0,
  • "weekStartsOn": "monday"
}

Replace the company working-time defaults

Authorizations:
bearerAuthsessionCookie
header Parameters
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.

Request Body schema: application/json
required
defaultLateStartGraceSeconds
required
integer [ 0 .. 86400 ]

Default 300.

defaultEarlyEndGraceSeconds
required
integer [ 0 .. 86400 ]

Default 300.

defaultStartToleranceSeconds
required
integer [ 0 .. 86400 ]

Default 7200.

defaultEndToleranceSeconds
required
integer [ 0 .. 86400 ]

Default 3600.

weekStartsOn
required
string
Enum: "monday" "sunday" "saturday"

The day weeks start on in the roster grid, roster import templates and the week ranges of the web views; default monday. ISO week numbers, rotations and calculations do not depend on it.

Responses

Request samples

Content type
application/json
{
  • "defaultLateStartGraceSeconds": 0,
  • "defaultEarlyEndGraceSeconds": 0,
  • "defaultStartToleranceSeconds": 0,
  • "defaultEndToleranceSeconds": 0,
  • "weekStartsOn": "monday"
}

Response samples

Content type
application/json
{
  • "defaultLateStartGraceSeconds": 0,
  • "defaultEarlyEndGraceSeconds": 0,
  • "defaultStartToleranceSeconds": 0,
  • "defaultEndToleranceSeconds": 0,
  • "weekStartsOn": "monday"
}

List working-time models

Authorizations:
bearerAuthsessionCookie
query Parameters
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.

archived
boolean

Default false.

scheduleType
string
Enum: "fixed" "flextime"
annualMismatch
boolean

Only annualised models whose planned seconds of the reference year containing asOf miss the target.

asOf
string <date> (Date)
Examples: asOf=2026-10-01

Version valid on this date; default today.

header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Create a working-time model

Authorizations:
bearerAuthsessionCookie
header Parameters
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 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
code
required
string <= 40 characters

Unique per company.

required
object (LocalisedText) non-empty

Display name per language; at least one language.

scheduleType
required
string
Enum: "fixed" "flextime"
required
Array of objects (WorkingTimeDay) <= 7 items

At most one entry per weekday; a missing weekday has target 0.

Array of objects (WorkingTimeSeason) <= 12 items

Parts of the year with their own weekday rows, instead of days (whose targets must then be 0). They cover every day of the year exactly once and repeat every year; 29 February belongs to the season of 28 February. Omitted in an update, the seasons in force on effectiveFrom stay.

integer or null

The target of a reference year; null keeps the weekly reference.

referenceYearStartMonth
integer [ 1 .. 12 ]
Default: 1

The month the reference year starts in, as the reference period of the working-time account.

targetDistribution
string
Default: "plan"
Enum: "plan" "even"

plan keeps the targets of the rows and reports how far they miss the annual target; even spreads the annual target over the working days without a public holiday, the rows only marking which days are worked. even needs annualTargetSeconds.

Array of objects (BreakThreshold)
integer or null
integer or null
integer or null
integer or null

Responses

Request samples

Content type
application/json
{
  • "code": "string",
  • "name": {
    },
  • "scheduleType": "fixed",
  • "days": [
    ],
  • "seasons": [
    ],
  • "annualTargetSeconds": 0,
  • "referenceYearStartMonth": 1,
  • "targetDistribution": "plan",
  • "breaks": [
    ],
  • "lateStartGraceSeconds": 0,
  • "earlyEndGraceSeconds": 0,
  • "startToleranceSeconds": 0,
  • "endToleranceSeconds": 0
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "code": "string",
  • "name": "string",
  • "names": {
    },
  • "scheduleType": "fixed",
  • "days": [
    ],
  • "seasons": [
    ],
  • "weeklyTargetSeconds": 0,
  • "workingDaysPerWeek": 0,
  • "breaks": [
    ],
  • "lateStartGraceSeconds": 0,
  • "earlyEndGraceSeconds": 0,
  • "startToleranceSeconds": 0,
  • "endToleranceSeconds": 0,
  • "effectiveLateStartGraceSeconds": 0,
  • "effectiveEarlyEndGraceSeconds": 0,
  • "effectiveStartToleranceSeconds": 0,
  • "effectiveEndToleranceSeconds": 0,
  • "effectiveFrom": "2026-10-01",
  • "archived": true,
  • "annualTargetSeconds": 0,
  • "referenceYearStartMonth": 1,
  • "targetDistribution": "plan",
  • "referenceYear": 0,
  • "referenceYearFrom": "2026-10-01",
  • "referenceYearTo": "2026-10-01",
  • "plannedAnnualSeconds": 0,
  • "annualMismatchSeconds": 0
}

Read a working-time model

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
query Parameters
referenceYear
integer [ 1900 .. 9999 ]

The reference year of the annual figures; default the one containing asOf.

asOf
string <date> (Date)
Examples: asOf=2026-10-01

Version valid on this date; default today.

header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "code": "string",
  • "name": "string",
  • "names": {
    },
  • "scheduleType": "fixed",
  • "days": [
    ],
  • "seasons": [
    ],
  • "weeklyTargetSeconds": 0,
  • "workingDaysPerWeek": 0,
  • "breaks": [
    ],
  • "lateStartGraceSeconds": 0,
  • "earlyEndGraceSeconds": 0,
  • "startToleranceSeconds": 0,
  • "endToleranceSeconds": 0,
  • "effectiveLateStartGraceSeconds": 0,
  • "effectiveEarlyEndGraceSeconds": 0,
  • "effectiveStartToleranceSeconds": 0,
  • "effectiveEndToleranceSeconds": 0,
  • "effectiveFrom": "2026-10-01",
  • "archived": true,
  • "annualTargetSeconds": 0,
  • "referenceYearStartMonth": 1,
  • "targetDistribution": "plan",
  • "referenceYear": 0,
  • "referenceYearFrom": "2026-10-01",
  • "referenceYearTo": "2026-10-01",
  • "plannedAnnualSeconds": 0,
  • "annualMismatchSeconds": 0
}

Change a model from a date on (creates a new version)

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Request Body schema: application/json
required
code
required
string <= 40 characters

Unique per company.

required
object (LocalisedText) non-empty

Display name per language; at least one language.

scheduleType
required
string
Enum: "fixed" "flextime"
required
Array of objects (WorkingTimeDay) <= 7 items

At most one entry per weekday; a missing weekday has target 0.

Array of objects (WorkingTimeSeason) <= 12 items

Parts of the year with their own weekday rows, instead of days (whose targets must then be 0). They cover every day of the year exactly once and repeat every year; 29 February belongs to the season of 28 February. Omitted in an update, the seasons in force on effectiveFrom stay.

integer or null

The target of a reference year; null keeps the weekly reference.

referenceYearStartMonth
integer [ 1 .. 12 ]
Default: 1

The month the reference year starts in, as the reference period of the working-time account.

targetDistribution
string
Default: "plan"
Enum: "plan" "even"

plan keeps the targets of the rows and reports how far they miss the annual target; even spreads the annual target over the working days without a public holiday, the rows only marking which days are worked. even needs annualTargetSeconds.

Array of objects (BreakThreshold)
integer or null
integer or null
integer or null
integer or null
effectiveFrom
required
string <date> (Date)

Responses

Request samples

Content type
application/json
{
  • "code": "string",
  • "name": {
    },
  • "scheduleType": "fixed",
  • "days": [
    ],
  • "seasons": [
    ],
  • "annualTargetSeconds": 0,
  • "referenceYearStartMonth": 1,
  • "targetDistribution": "plan",
  • "breaks": [
    ],
  • "lateStartGraceSeconds": 0,
  • "earlyEndGraceSeconds": 0,
  • "startToleranceSeconds": 0,
  • "endToleranceSeconds": 0,
  • "effectiveFrom": "2026-10-01"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "code": "string",
  • "name": "string",
  • "names": {
    },
  • "scheduleType": "fixed",
  • "days": [
    ],
  • "seasons": [
    ],
  • "weeklyTargetSeconds": 0,
  • "workingDaysPerWeek": 0,
  • "breaks": [
    ],
  • "lateStartGraceSeconds": 0,
  • "earlyEndGraceSeconds": 0,
  • "startToleranceSeconds": 0,
  • "endToleranceSeconds": 0,
  • "effectiveLateStartGraceSeconds": 0,
  • "effectiveEarlyEndGraceSeconds": 0,
  • "effectiveStartToleranceSeconds": 0,
  • "effectiveEndToleranceSeconds": 0,
  • "effectiveFrom": "2026-10-01",
  • "archived": true,
  • "annualTargetSeconds": 0,
  • "referenceYearStartMonth": 1,
  • "targetDistribution": "plan",
  • "referenceYear": 0,
  • "referenceYearFrom": "2026-10-01",
  • "referenceYearTo": "2026-10-01",
  • "plannedAnnualSeconds": 0,
  • "annualMismatchSeconds": 0
}

List the versions of a model

Small bounded list (at most 200 versions, newest first); the response is {items} only.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Archive a model so it cannot be assigned anymore

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "code": "string",
  • "name": "string",
  • "names": {
    },
  • "scheduleType": "fixed",
  • "days": [
    ],
  • "seasons": [
    ],
  • "weeklyTargetSeconds": 0,
  • "workingDaysPerWeek": 0,
  • "breaks": [
    ],
  • "lateStartGraceSeconds": 0,
  • "earlyEndGraceSeconds": 0,
  • "startToleranceSeconds": 0,
  • "endToleranceSeconds": 0,
  • "effectiveLateStartGraceSeconds": 0,
  • "effectiveEarlyEndGraceSeconds": 0,
  • "effectiveStartToleranceSeconds": 0,
  • "effectiveEndToleranceSeconds": 0,
  • "effectiveFrom": "2026-10-01",
  • "archived": true,
  • "annualTargetSeconds": 0,
  • "referenceYearStartMonth": 1,
  • "targetDistribution": "plan",
  • "referenceYear": 0,
  • "referenceYearFrom": "2026-10-01",
  • "referenceYearTo": "2026-10-01",
  • "plannedAnnualSeconds": 0,
  • "annualMismatchSeconds": 0
}

List rotation patterns

Authorizations:
bearerAuthsessionCookie
query Parameters
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.

header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Create a rotation pattern

Authorizations:
bearerAuthsessionCookie
header Parameters
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 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
required
object (LocalisedText) non-empty

Display name per language; at least one language.

cadence
string (RotationCadence)
Enum: "weekly" "everyNDays" "monthly"

Default weekly.

stepDays
integer [ 1 .. 366 ]

The days of an element; required for everyNDays.

integer or string (SwitchDayOfMonth)
anchorDate
required
string <date> (Date)

The first element starts on it; elements are counted in whole steps of the cadence from it.

required
Array of objects (RotationElement) [ 2 .. 52 ] items

The pattern, repeated after its last element. The same model may appear in consecutive elements.

Responses

Request samples

Content type
application/json
{
  • "name": {
    },
  • "cadence": "weekly",
  • "stepDays": 1,
  • "switchDayOfMonth": 1,
  • "anchorDate": "2026-10-01",
  • "elements": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "name": "string",
  • "names": {
    },
  • "cadence": "weekly",
  • "stepDays": 0,
  • "switchDayOfMonth": 1,
  • "anchorDate": "2026-10-01",
  • "elements": [
    ],
  • "assignmentCount": 0
}

Read a rotation pattern

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "name": "string",
  • "names": {
    },
  • "cadence": "weekly",
  • "stepDays": 0,
  • "switchDayOfMonth": 1,
  • "anchorDate": "2026-10-01",
  • "elements": [
    ],
  • "assignmentCount": 0
}

Change a rotation pattern

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Request Body schema: application/json
required
required
object (LocalisedText) non-empty

Display name per language; at least one language.

cadence
string (RotationCadence)
Enum: "weekly" "everyNDays" "monthly"

Default weekly.

stepDays
integer [ 1 .. 366 ]

The days of an element; required for everyNDays.

integer or string (SwitchDayOfMonth)
anchorDate
required
string <date> (Date)

The first element starts on it; elements are counted in whole steps of the cadence from it.

required
Array of objects (RotationElement) [ 2 .. 52 ] items

The pattern, repeated after its last element. The same model may appear in consecutive elements.

Responses

Request samples

Content type
application/json
{
  • "name": {
    },
  • "cadence": "weekly",
  • "stepDays": 1,
  • "switchDayOfMonth": 1,
  • "anchorDate": "2026-10-01",
  • "elements": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "name": "string",
  • "names": {
    },
  • "cadence": "weekly",
  • "stepDays": 0,
  • "switchDayOfMonth": 1,
  • "anchorDate": "2026-10-01",
  • "elements": [
    ],
  • "assignmentCount": 0
}

Delete a rotation pattern that was never assigned

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

List assignments (history) of employees

self returns own assignments, team those of the reporting line, company all (HR). contractMismatch=true lists only assignments whose model differs from the contract hours.

Authorizations:
bearerAuthsessionCookie
query Parameters
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"

What is returned: self = only the caller's own entries; team = entries of employees in the caller's reporting line (managerScope); company = every entry of the company (HR). Default self.

employeeId
string <uuid> (Uuid)
Examples: employeeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
kind
string
Enum: "base" "rotation"
asOf
string <date> (Date)
Examples: asOf=2026-10-01

Only assignments valid on this date.

contractMismatch
boolean

True lists only assignments with a non-zero contractMismatchSeconds.

header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Assign a model or rotation to an employee from a date on

Authorizations:
bearerAuthsessionCookie
header Parameters
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 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
employeeId
required
string <uuid> (Uuid)
kind
required
string
Enum: "base" "rotation"
Uuid (string) or null
Uuid (string) or null
rotationWeekOffset
integer >= 0
Default: 0

The element of the pattern the assignment starts in, counted in elements for every cadence. Only for kind rotation.

validFrom
required
string <date> (Date)
Date (string) or null

Inclusive end; null means open-ended. Defaults to the day before the next assignment of the same kind.

Responses

Request samples

Content type
application/json
{
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "kind": "base",
  • "workingTimeModelId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "rotationId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "rotationWeekOffset": 0,
  • "validFrom": "2026-10-01",
  • "validTo": "2026-10-01"
}

Response samples

Content type
application/json
{
  • "contractMismatchSeconds": 0,
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "kind": "base",
  • "workingTimeModelId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "rotationId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "rotationWeekOffset": 0,
  • "validFrom": "2026-10-01",
  • "validTo": "2026-10-01",
  • "source": "manual",
  • "scheduleChangeRequestId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "createdBy": {
    }
}

Import assignments from a CSV or XLSX file

Columns personnelNumber, kind (base or rotation), schedule (the code of a model, or the name of a rotation in any language), validFrom, and optionally validTo and rotationOffset. The format is recognised by the file's content. Every row is checked by the rules of a single assignment, in the order of the file. When any row is invalid, the answer is 422 with violations on rows.<row number in the file>.<column> and nothing is stored. With dryRun the rows are checked the same way and nothing is stored.

Authorizations:
bearerAuthsessionCookie
header Parameters
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.

Request Body schema: multipart/form-data
required
file
required
string <binary>
dryRun
boolean
Default: false

Responses

Response samples

Content type
application/json
{
  • "dryRun": true,
  • "rows": [
    ]
}

Assign one model or rotation to up to 500 employees

Every employee is checked by the rules of a single assignment; a running assignment of the same kind ends the day before. When any employee cannot get it, the answer is 422 with a violation on employeeIds.<index> and nothing is stored.

Authorizations:
bearerAuthsessionCookie
header Parameters
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 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
employeeIds
required
Array of strings <uuid> (Uuid) [ 1 .. 500 ] items unique [ items <uuid > ]
kind
required
string
Enum: "base" "rotation"
Uuid (string) or null
Uuid (string) or null
rotationWeekOffset
integer >= 0
Default: 0
validFrom
required
string <date> (Date)
Date (string) or null

Responses

Request samples

Content type
application/json
{
  • "employeeIds": [
    ],
  • "kind": "base",
  • "workingTimeModelId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "rotationId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "rotationWeekOffset": 0,
  • "validFrom": "2026-10-01",
  • "validTo": "2026-10-01"
}

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Say that an employee had a schedule in a period, also in the past

Corrects the history: the employee had the model or rotation in the inclusive period. Assignments of the same kind under it are shortened, split around it or, when it covers them, replaced; adjacent assignments with the same schedule become one. A reason (changeReason.comment) is required. A correction that changes days before today is refused with calendar-change-reaches-the-past, naming the earliest day and the number of days, until the request repeats it with applyFrom, no later than that day; one that changes days in a closed payroll month is refused with working-time-assignment-correction-reaches-closed-period until the request carries includeProtectedPeriods. The days from the earliest changed day on are recalculated.

Authorizations:
bearerAuthsessionCookie
header Parameters
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.

Request Body schema: application/json
required
employeeId
required
string <uuid> (Uuid)
kind
required
string
Enum: "base" "rotation"
Uuid (string) or null
Uuid (string) or null
rotationWeekOffset
integer >= 0
Default: 0
validFrom
required
string <date> (Date)
Date (string) or null

Inclusive end; null means open-ended.

required
object (ChangeReasonInput)

Why the history is corrected; comment is required.

applyFrom
string <date> (Date)

The confirmation of a correction that changes past days; no later than the earliest changed day.

includeProtectedPeriods
boolean
Default: false

The explicit confirmation of a correction that changes days in a closed payroll month; recorded in the change history.

Responses

Request samples

Content type
application/json
{
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "kind": "base",
  • "workingTimeModelId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "rotationId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "rotationWeekOffset": 0,
  • "validFrom": "2026-10-01",
  • "validTo": "2026-10-01",
  • "changeReason": {
    },
  • "applyFrom": "2026-10-01",
  • "includeProtectedPeriods": false
}

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "recalculation": {
    },
  • "includedProtectedPeriods": true
}

Read an assignment

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "contractMismatchSeconds": 0,
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "kind": "base",
  • "workingTimeModelId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "rotationId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "rotationWeekOffset": 0,
  • "validFrom": "2026-10-01",
  • "validTo": "2026-10-01",
  • "source": "manual",
  • "scheduleChangeRequestId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "createdBy": {
    }
}

Delete an assignment that has not started yet

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

Correct the start, end or schedule of an assignment, started or not

The assignment gets the period and schedule of the body, and keeps its kind: workingTimeModelId for a base assignment, rotationId for a rotation. An assignment that adjoined it follows, so no day is left without one; what the period now reaches over is shortened or replaced. A reason (changeReason.comment) is required. A correction that changes days before today is refused with calendar-change-reaches-the-past, naming the earliest day and the number of days, until the request repeats it with applyFrom, no later than that day; one that changes days in a closed payroll month is refused with working-time-assignment-correction-reaches-closed-period until the request carries includeProtectedPeriods. The days from the earliest changed day on are recalculated.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Request Body schema: application/json
required
Uuid (string) or null
Uuid (string) or null
rotationWeekOffset
integer >= 0
Default: 0
validFrom
required
string <date> (Date)
Date (string) or null

Inclusive end; null means open-ended.

required
object (ChangeReasonInput)

Why the history is corrected; comment is required.

applyFrom
string <date> (Date)

The confirmation of a correction that changes past days; no later than the earliest changed day.

includeProtectedPeriods
boolean
Default: false

The explicit confirmation of a correction that changes days in a closed payroll month; recorded in the change history.

Responses

Request samples

Content type
application/json
{
  • "workingTimeModelId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "rotationId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "rotationWeekOffset": 0,
  • "validFrom": "2026-10-01",
  • "validTo": "2026-10-01",
  • "changeReason": {
    },
  • "applyFrom": "2026-10-01",
  • "includeProtectedPeriods": false
}

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "recalculation": {
    },
  • "includedProtectedPeriods": true
}

List work types

Authorizations:
bearerAuthsessionCookie
query Parameters
page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
archived
boolean

Default false.

header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Create a work type

Authorizations:
bearerAuthsessionCookie
header Parameters
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 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
code
required
string [ 1 .. 20 ] characters

Unique per company, compared without case.

required
object (LocalisedText) non-empty

Display name per language; at least one language.

kind
required
string (WorkTypeKind)
Enum: "onSite" "remote" "other"

Responses

Request samples

Content type
application/json
{
  • "code": "string",
  • "name": {
    },
  • "kind": "onSite"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "code": "string",
  • "name": "string",
  • "names": {
    },
  • "kind": "onSite",
  • "archived": true,
  • "version": 0
}

Read a work type

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "code": "string",
  • "name": "string",
  • "names": {
    },
  • "kind": "onSite",
  • "archived": true,
  • "version": 0
}

Change the code, names or kind of a work type

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Request Body schema: application/json
required
code
required
string [ 1 .. 20 ] characters

Unique per company, compared without case.

required
object (LocalisedText) non-empty

Display name per language; at least one language.

kind
required
string (WorkTypeKind)
Enum: "onSite" "remote" "other"

Responses

Request samples

Content type
application/json
{
  • "code": "string",
  • "name": {
    },
  • "kind": "onSite"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "code": "string",
  • "name": "string",
  • "names": {
    },
  • "kind": "onSite",
  • "archived": true,
  • "version": 0
}

Delete an unused work type

Only while no assignment, rotation or request references it; archive it otherwise.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

Archive a work type so it cannot be assigned or requested any more

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "code": "string",
  • "name": "string",
  • "names": {
    },
  • "kind": "onSite",
  • "archived": true,
  • "version": 0
}

List work type rotations

Authorizations:
bearerAuthsessionCookie
query Parameters
page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Create a work type rotation

Authorizations:
bearerAuthsessionCookie
header Parameters
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 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
required
object (LocalisedText) non-empty

Text maintained per supported language. Readers receive it resolved to their language (fallback en, then the first available); writers send the full map.

cadence
string (RotationCadence)
Enum: "weekly" "everyNDays" "monthly"

Default weekly.

stepDays
integer [ 1 .. 366 ]

Required for everyNDays.

integer or string (SwitchDayOfMonth)
anchorDate
required
string <date> (Date)
required
Array of objects [ 2 .. 52 ] items

Responses

Request samples

Content type
application/json
{
  • "name": {
    },
  • "cadence": "weekly",
  • "stepDays": 1,
  • "switchDayOfMonth": 1,
  • "anchorDate": "2026-10-01",
  • "elements": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "name": "string",
  • "names": {
    },
  • "cadence": "weekly",
  • "stepDays": 0,
  • "switchDayOfMonth": 1,
  • "anchorDate": "2026-10-01",
  • "elements": [
    ],
  • "assignmentCount": 0
}

Read a work type rotation

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "name": "string",
  • "names": {
    },
  • "cadence": "weekly",
  • "stepDays": 0,
  • "switchDayOfMonth": 1,
  • "anchorDate": "2026-10-01",
  • "elements": [
    ],
  • "assignmentCount": 0
}

Delete a work type rotation that is assigned to nobody

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

List work type assignments

Newest first. Another employee than the caller outside the scope answers 404.

Authorizations:
bearerAuthsessionCookie
query Parameters
page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
scope
string (ListScope)
Default: "self"
Enum: "self" "team" "company"

self = the caller's own; team = the caller's reporting line; company = everybody (HR). Default self.

employeeId
string <uuid> (Uuid)
Examples: employeeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
kind
string
Enum: "base" "rotation"
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Assign a work type or work type rotation from a date

A new assignment of a kind ends the previous one of that kind the day before its start.

Authorizations:
bearerAuthsessionCookie
header Parameters
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 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
employeeId
required
string <uuid> (Uuid)
kind
required
string
Enum: "base" "rotation"
Uuid (string) or null

Required for kind base.

object

A work type per weekday overriding the base work type, such as {"monday": "<HO id>"}.

Uuid (string) or null

Required for kind rotation.

rotationOffset
integer >= 0
Default: 0

The element the assignment starts in.

validFrom
required
string <date> (Date)
Date (string) or null

Responses

Request samples

Content type
application/json
{
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "kind": "base",
  • "workTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "weekdayWorkTypes": {
    },
  • "rotationId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "rotationOffset": 0,
  • "validFrom": "2026-10-01",
  • "validTo": "2026-10-01"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "kind": "base",
  • "workTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "weekdayWorkTypes": {
    },
  • "rotationId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "rotationOffset": 0,
  • "validFrom": "2026-10-01",
  • "validTo": "2026-10-01",
  • "source": "manual",
  • "workTypeRequestId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "createdAt": "2026-10-01T08:15:00+02:00"
}

Assign a work type or rotation to up to 500 employees

All or nothing.

Authorizations:
bearerAuthsessionCookie
header Parameters
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 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
employeeIds
required
Array of strings <uuid> (Uuid) [ 1 .. 500 ] items unique [ items <uuid > ]
kind
required
string
Enum: "base" "rotation"
Uuid (string) or null

Required for kind base.

object

A work type per weekday overriding the base work type, such as {"monday": "<HO id>"}.

Uuid (string) or null

Required for kind rotation.

rotationOffset
integer >= 0
Default: 0

The element the assignment starts in.

validFrom
required
string <date> (Date)
Date (string) or null

Responses

Request samples

Content type
application/json
{
  • "employeeIds": [
    ],
  • "kind": "base",
  • "workTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "weekdayWorkTypes": {
    },
  • "rotationId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "rotationOffset": 0,
  • "validFrom": "2026-10-01",
  • "validTo": "2026-10-01"
}

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Import work type assignments from a CSV or XLSX file

Columns personnelNumber, kind (base or rotation), workType (a work type code or a rotation name), validFrom, optional validTo, rotationOffset and weekdayWorkTypes (such as mon=HO;fri=HO). Recognised by content; all or nothing; dryRun checks only.

Authorizations:
bearerAuthsessionCookie
header Parameters
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.

Request Body schema: multipart/form-data
required
file
required
string <binary>
dryRun
boolean
Default: false

Responses

Response samples

Content type
application/json
{
  • "dryRun": true,
  • "rows": [
    ]
}

Delete a work type assignment that has not started

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

Read the planned work type per day of an employee

At most 366 days. Colleagues get 404.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
query Parameters
from
required
string <date> (Date)
Examples: from=2026-10-01
to
required
string <date> (Date)
Examples: to=2026-10-01
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "from": "2026-10-01",
  • "to": "2026-10-01",
  • "days": [
    ]
}

Read the caller's planned work type per day

Authorizations:
bearerAuthsessionCookie
query Parameters
from
required
string <date> (Date)
Examples: from=2026-10-01
to
required
string <date> (Date)
Examples: to=2026-10-01
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "from": "2026-10-01",
  • "to": "2026-10-01",
  • "days": [
    ]
}

List work type change requests

Authorizations:
bearerAuthsessionCookie
query Parameters
page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
scope
string (ListScope)
Default: "self"
Enum: "self" "team" "company"

self = the caller's own; team = the caller's reporting line; company = everybody (HR). Default self.

status
string
Enum: "pendingApproval" "approved" "rejected" "withdrawn" "cancelled"
employeeId
string <uuid> (Uuid)
Examples: employeeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Request another work type for a period or permanently

Starts the approval engine with subject type workTypeChange; approved at once when the rules need no approval.

Authorizations:
bearerAuthsessionCookie
header Parameters
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 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
employeeId
string <uuid> (Uuid)

Defaults to the caller. Another employee only for HR.

workTypeId
required
string <uuid> (Uuid)
startDate
required
string <date> (Date)
Date (string) or null

Null for a permanent change, which becomes a base assignment once approved.

reason
string <= 1000 characters
Uuid (string) or null

The withdrawn request this one replaces.

Responses

Request samples

Content type
application/json
{
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "workTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "startDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "reason": "string",
  • "replacesRequestId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "workTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "startDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "status": "pendingApproval",
  • "reason": "string",
  • "approval": {
    },
  • "origin": "employee",
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "replacesRequestId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Read a work type change request

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "workTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "startDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "status": "pendingApproval",
  • "reason": "string",
  • "approval": {
    },
  • "origin": "employee",
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "replacesRequestId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Withdraw an undecided work type change request

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "workTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "startDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "status": "pendingApproval",
  • "reason": "string",
  • "approval": {
    },
  • "origin": "employee",
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "replacesRequestId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Cancel an approved work type change

The requester before the start, HR at any time; the work type plan returns to the levels below.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "workTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "startDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "status": "pendingApproval",
  • "reason": "string",
  • "approval": {
    },
  • "origin": "employee",
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "replacesRequestId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

List the comments of a work type change request

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Comment on a work type change request

As for schedule change requests: text of 1 to 2000 characters and up to three PDF, PNG or JPEG files of at most 10 MB.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Request Body schema: multipart/form-data
required
text
required
string <= 2000 characters
files
Array of strings <binary> <= 3 items [ items <binary > ]

Responses

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "author": {
    },
  • "text": "string",
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "deletableUntil": "2026-10-01T08:15:00+02:00",
  • "attachments": [
    ]
}

Delete one's own comment within 15 minutes

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
commentId
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

List holiday calendars

Authorizations:
bearerAuthsessionCookie
query Parameters
page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Create a holiday calendar

Authorizations:
bearerAuthsessionCookie
header Parameters
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 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
code
required
string [ 1 .. 20 ] characters

Unique per company regardless of case, such as DE-NW or AT.

required
object (LocalisedText) non-empty

Text maintained per supported language. Readers receive it resolved to their language (fallback en, then the first available); writers send the full map.

Responses

Request samples

Content type
application/json
{
  • "code": "string",
  • "name": {
    }
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "code": "string",
  • "name": "string",
  • "names": {
    },
  • "version": 0,
  • "feed": {
    }
}

Read a holiday calendar

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "code": "string",
  • "name": "string",
  • "names": {
    },
  • "version": 0,
  • "feed": {
    }
}

Change the code or names of a holiday calendar

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Request Body schema: application/json
required
code
required
string [ 1 .. 20 ] characters

Unique per company regardless of case, such as DE-NW or AT.

required
object (LocalisedText) non-empty

Text maintained per supported language. Readers receive it resolved to their language (fallback en, then the first available); writers send the full map.

Responses

Request samples

Content type
application/json
{
  • "code": "string",
  • "name": {
    }
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "code": "string",
  • "name": "string",
  • "names": {
    },
  • "version": 0,
  • "feed": {
    }
}

Delete a holiday calendar nobody uses

A calendar named by a holiday rule, a location or an assignment answers 409.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

Subscribe a holiday calendar to the official feed of a region

Imports the feed at once as holidays of source feed scoped to the calendar, and refreshes it on a schedule. Subscribing again refreshes the import; another region replaces the holidays of the previous one. A failed import keeps the holidays of the last good one and answers the calendar with the feed status failed.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Request Body schema: application/json
required
region
required
string

ISO 3166-2 code of a region whose country package names an official feed (feed of /holiday-regions).

Responses

Request samples

Content type
application/json
{
  • "region": "string"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "code": "string",
  • "name": "string",
  • "names": {
    },
  • "version": 0,
  • "feed": {
    }
}

End the subscription of a holiday calendar to its feed

Removes the holidays imported from the feed.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

List the holiday calendar assignments of an employee

Newest start first.

Authorizations:
bearerAuthsessionCookie
query Parameters
employeeId
required
string <uuid> (Uuid)
Examples: employeeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Give an employee a holiday calendar from a date

The previous assignment ends the day before; a later one ends this one the day before it starts. Publishes HolidayCalendarChanged.

Authorizations:
bearerAuthsessionCookie
header Parameters
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.

Request Body schema: application/json
required
applyFrom
string <date> (Date)

The first day to recalculate, also in the past. Without it a change recalculates from today on, and a change that would differ on a day before today is refused with calendar-change-reaches-the-past.

includeProtectedPeriods
boolean
Default: false

Also recalculate days before the history boundary of the company and days in settled working-time periods. Without it they keep their values even from applyFrom on.

employeeId
required
string <uuid> (Uuid)
holidayCalendarId
required
string <uuid> (Uuid)
validFrom
required
string <date> (Date)

Responses

Request samples

Content type
application/json
{
  • "applyFrom": "2026-10-01",
  • "includeProtectedPeriods": false,
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "holidayCalendarId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "validFrom": "2026-10-01"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "holidayCalendarId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "validFrom": "2026-10-01",
  • "validTo": "2026-10-01"
}

Delete a holiday calendar assignment

The previous assignment runs on in its place.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
query Parameters
applyFrom
string <date> (Date)
Examples: applyFrom=2026-10-01

The first day to recalculate, also in the past. Without it a change that would differ on a day before today is refused with calendar-change-reaches-the-past.

includeProtectedPeriods
boolean
Default: false

Also recalculate days before the history boundary of the company and days in settled working-time periods.

header Parameters
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.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

List the default holiday calendars of locations

Authorizations:
bearerAuthsessionCookie
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Set or remove the default holiday calendar of a location

Applies to everybody at the location without an assignment of their own; announced as HolidayCalendarChanged from today on.

Authorizations:
bearerAuthsessionCookie
header Parameters
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.

Request Body schema: application/json
required
locationId
required
string <uuid> (Uuid)
required
Uuid (string) or null

Null removes the default.

Responses

Request samples

Content type
application/json
{
  • "locationId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "holidayCalendarId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Response samples

Content type
application/json
{
  • "locationId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "holidayCalendarId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

List planned shifts per day

self returns the caller's published entries; team and company also return drafts, to planners only.

Authorizations:
bearerAuthsessionCookie
query Parameters
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
required
string <date> (Date)
Examples: from=2026-10-01
to
required
string <date> (Date)
Examples: to=2026-10-01
employeeId
string <uuid> (Uuid)
Examples: employeeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
scope
string (ListScope)
Default: "self"
Enum: "self" "team" "company"

What is returned: self = only the caller's own entries; team = entries of employees in the caller's reporting line (managerScope); company = every entry of the company (HR). Default self.

status
string
Enum: "draft" "published"
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Create or replace draft roster entries in bulk

Authorizations:
bearerAuthsessionCookie
header Parameters
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.

Request Body schema: application/json
required
required
Array of objects (RosterEntryInput) [ 1 .. 500 ] items

Responses

Request samples

Content type
application/json
{
  • "entries": [
    ]
}

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Delete a roster entry

A draft is deleted at once. A published entry stays effective and gets a draft with draftAction delete, which removes it when published.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

Publish draft roster entries of a period

Publishes the drafts of the employees in the caller's scope, optionally narrowed to a department or a list of employees, logs the publication and notifies each employee whose plan changed once.

Authorizations:
bearerAuthsessionCookie
header Parameters
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.

Request Body schema: application/json
required
from
required
string <date> (Date)
to
required
string <date> (Date)
employeeIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

Defaults to every employee in the caller scope.

departmentId
string <uuid> (Uuid)

Publishes only the drafts of employees in this department on from.

Responses

Request samples

Content type
application/json
{
  • "from": "2026-10-01",
  • "to": "2026-10-01",
  • "employeeIds": [
    ],
  • "departmentId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Response samples

Content type
application/json
{
  • "publishedCount": 0,
  • "employeeCount": 0,
  • "publicationId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

List the comments of a schedule change request

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Comment on a schedule change request

Text of 1 to 2000 characters and up to three files (PDF, PNG or JPEG by content, at most 10 MB each). Every other participant receives request.commented, without the text.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Request Body schema: multipart/form-data
required
text
required
string <= 2000 characters
files
Array of strings <binary> <= 3 items [ items <binary > ]

Responses

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "author": {
    },
  • "text": "string",
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "deletableUntil": "2026-10-01T08:15:00+02:00",
  • "attachments": [
    ]
}

Delete one's own comment within 15 minutes

Another participant gets 403 request-comment-not-yours; after 15 minutes the comment stays (409).

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
commentId
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

Read the annual working-time status of an employee

The annual target of the employee's annualised model against the working-day calendar of a reference year. Only the days on which the employee is employed and on that model count.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
query Parameters
referenceYear
integer [ 1900 .. 9999 ]

The reference year, named by the calendar year it starts in; default the one containing today.

header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "workingTimeModelId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "referenceYear": 0,
  • "referenceYearFrom": "2026-10-01",
  • "referenceYearTo": "2026-10-01",
  • "targetDistribution": "plan",
  • "annualTargetSeconds": 0,
  • "proRatedAnnualTargetSeconds": 0,
  • "scheduledSeconds": 0,
  • "scheduledToDateSeconds": 0,
  • "monthlyTargetSeconds": [
    ]
}

Read the caller's annual working-time status

The annual target of the employee's annualised model against the working-day calendar of a reference year. Only the days on which the employee is employed and on that model count.

Authorizations:
bearerAuthsessionCookie
query Parameters
referenceYear
integer [ 1900 .. 9999 ]

The reference year, named by the calendar year it starts in; default the one containing today.

header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "workingTimeModelId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "referenceYear": 0,
  • "referenceYearFrom": "2026-10-01",
  • "referenceYearTo": "2026-10-01",
  • "targetDistribution": "plan",
  • "annualTargetSeconds": 0,
  • "proRatedAnnualTargetSeconds": 0,
  • "scheduledSeconds": 0,
  • "scheduledToDateSeconds": 0,
  • "monthlyTargetSeconds": [
    ]
}

Download a roster import template

An XLSX workbook in the caller's language. The first sheet has a row per person the caller plans (personnel number, name) and a column per date (YYYY-MM-DD) of from to to (at most 28 days) or the week of weekOf; public holidays and weekly days off are filled in with their names. The second sheet lists the model codes and the word for a day off (off, German frei).

Authorizations:
bearerAuthsessionCookie
query Parameters
from
string <date> (Date)
Examples: from=2026-10-01
to
string <date> (Date)
Examples: to=2026-10-01
weekOf
string <date> (Date)
Examples: weekOf=2026-10-01
departmentId
string <uuid> (Uuid)
Examples: departmentId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

Import a filled roster template

A CSV or XLSX file, recognised by its content, with a personnel number column (Personnel number or Personalnummer) and a column per date. A cell holds a model code, off or frei for a day off, or nothing for no change; a filled-in holiday or weekly day off is skipped. Every cell becomes a draft, also where a published entry exists. Any problem rejects the whole file with the row (rows.<row>.personnelNumber) or the row and date (rows.<row>.<date>); dryRun checks and stores nothing.

Authorizations:
bearerAuthsessionCookie
header Parameters
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.

Request Body schema: multipart/form-data
required
file
required
string <binary>
dryRun
boolean
Default: false

Responses

Response samples

Content type
application/json
{
  • "dryRun": true,
  • "created": 0,
  • "changed": 0,
  • "unchanged": 0,
  • "cells": [
    ]
}

Read the roster grid of a planner

The employees the caller plans (HR the company, a manager the reporting line) with one cell per date, for from to to (at most 42 days) or the week of weekOf, which starts on weekStartsOn of the working-time settings.

Authorizations:
bearerAuthsessionCookie
query Parameters
page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
from
string <date> (Date)
Examples: from=2026-10-01
to
string <date> (Date)
Examples: to=2026-10-01
weekOf
string <date> (Date)
Examples: weekOf=2026-10-01

Any date of the week to show; replaces from and to.

departmentId
string <uuid> (Uuid)
Examples: departmentId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Only employees in this department on the first day.

employeeId
string <uuid> (Uuid)
Examples: employeeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "from": "2026-10-01",
  • "to": "2026-10-01",
  • "weekStartsOn": "monday",
  • "items": [
    ],
  • "meta": {
    }
}

List roster publications

HR reads every publication of the company, a manager only their own, newest first.

Authorizations:
bearerAuthsessionCookie
query Parameters
page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Resolve which shift day an instant belongs to

Own shift or that of an employee in scope; anybody else gets 404.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
query Parameters
at
required
string <date-time> (DateTime)
Examples: at=2026-10-01T08:15:00+02:00

An instant with an offset or Z. An input also accepts fractional seconds of any number of digits, as Date.toISOString() sends them; the fraction is dropped. An answer is always in whole seconds.

header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "at": "2026-10-01T08:15:00+02:00",
  • "shiftDate": "2026-10-01",
  • "workingTimeModelId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "window": {
    },
  • "matchedBy": "window"
}

List schedule change requests

Visible: the requester, the named colleague, current and past approvers of the request, managers in scope and HR. scope=self returns requests the caller is requester or colleague of; team requests of the reporting line; company all requests (HR). Groups (groupBy): status.

Authorizations:
bearerAuthsessionCookie
query Parameters
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 meta.groups); the operation names its keys, any other answers 400.

scope
string (ListScope)
Default: "self"
Enum: "self" "team" "company"

What is returned: self = only the caller's own entries; team = entries of employees in the caller's reporting line (managerScope); company = every entry of the company (HR). Default self.

status
string
Enum: "awaitingColleague" "pendingApproval" "approved" "rejected" "declinedByColleague" "withdrawn" "cancelled" "expired"
employeeId
string <uuid> (Uuid)
Examples: employeeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
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.

header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Request a model change or a shift swap

Starts the approval engine; when the rules require no approval the request is auto-approved synchronously and the response already shows the final state. A pending request is not edited: withdraw it and create a new one with replacesRequestId (new approval instance, history linked). Another employee as employeeId is HR only.

Authorizations:
bearerAuthsessionCookie
header Parameters
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 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
employeeId
string <uuid> (Uuid)

Defaults to the caller. Another employee only for HR.

type
required
string
Enum: "modelChange" "shiftSwap"
startDate
required
string <date> (Date)
Date (string) or null

Required for shiftSwap and temporary changes. Null only for a permanent modelChange.

Uuid (string) or null

Required for modelChange.

Uuid (string) or null

Required for shiftSwap.

reason
string <= 1000 characters
Uuid (string) or null

Set when this request replaces a withdrawn one (edit = withdraw + resubmit); the approval history is linked.

Responses

Request samples

Content type
application/json
{
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "type": "modelChange",
  • "startDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "workingTimeModelId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "colleagueId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "reason": "string",
  • "replacesRequestId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "type": "modelChange",
  • "startDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "workingTimeModelId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "colleague": {
    },
  • "status": "awaitingColleague",
  • "reason": "string",
  • "colleagueRespondedAt": "2026-10-01T08:15:00+02:00",
  • "approval": {
    },
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "createdBy": {
    },
  • "replacesRequestId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Read a schedule change request

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "type": "modelChange",
  • "startDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "workingTimeModelId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "colleague": {
    },
  • "status": "awaitingColleague",
  • "reason": "string",
  • "colleagueRespondedAt": "2026-10-01T08:15:00+02:00",
  • "approval": {
    },
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "createdBy": {
    },
  • "replacesRequestId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Withdraw an own request that is not decided yet

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Request Body schema: application/json
required
comment
string <= 2000 characters

Responses

Request samples

Content type
application/json
{
  • "comment": "string"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "type": "modelChange",
  • "startDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "workingTimeModelId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "colleague": {
    },
  • "status": "awaitingColleague",
  • "reason": "string",
  • "colleagueRespondedAt": "2026-10-01T08:15:00+02:00",
  • "approval": {
    },
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "createdBy": {
    },
  • "replacesRequestId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Cancel an approved request (requester before its start, HR any time)

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Request Body schema: application/json
required
comment
string <= 2000 characters

Responses

Request samples

Content type
application/json
{
  • "comment": "string"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "type": "modelChange",
  • "startDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "workingTimeModelId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "colleague": {
    },
  • "status": "awaitingColleague",
  • "reason": "string",
  • "colleagueRespondedAt": "2026-10-01T08:15:00+02:00",
  • "approval": {
    },
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "createdBy": {
    },
  • "replacesRequestId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Colleague consents to the swap; the approval then starts

Only the named colleague. Starts the manager approval; auto-approval is applied synchronously.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Request Body schema: application/json
required
comment
string <= 2000 characters

Responses

Request samples

Content type
application/json
{
  • "comment": "string"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "type": "modelChange",
  • "startDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "workingTimeModelId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "colleague": {
    },
  • "status": "awaitingColleague",
  • "reason": "string",
  • "colleagueRespondedAt": "2026-10-01T08:15:00+02:00",
  • "approval": {
    },
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "createdBy": {
    },
  • "replacesRequestId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Colleague declines the swap

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Request Body schema: application/json
required
comment
string <= 2000 characters

Responses

Request samples

Content type
application/json
{
  • "comment": "string"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "type": "modelChange",
  • "startDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "workingTimeModelId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "colleague": {
    },
  • "status": "awaitingColleague",
  • "reason": "string",
  • "colleagueRespondedAt": "2026-10-01T08:15:00+02:00",
  • "approval": {
    },
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "createdBy": {
    },
  • "replacesRequestId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Calendar

Public holidays, weekly off days and the working-day calendar.

List holiday rules of the company calendar

Authorizations:
bearerAuthsessionCookie
query Parameters
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.

source
string
Enum: "seed" "manual" "feed"
locationId
string <uuid> (Uuid)
Examples: locationId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
departmentId
string <uuid> (Uuid)
Examples: departmentId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Create a manual holiday rule

Authorizations:
bearerAuthsessionCookie
header Parameters
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 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
Any of
applyFrom
string <date> (Date)

The first day to recalculate, also in the past. Without it a change recalculates from today on, and a change that would differ on a day before today is refused with calendar-change-reaches-the-past.

includeProtectedPeriods
boolean
Default: false

Also recalculate days before the history boundary of the company and days in settled working-time periods. Without it they keep their values even from applyFrom on.

required
object (LocalisedText) non-empty

Holiday name per language, e.g. {en: German Unity Day, de: Tag der Deutschen Einheit}; the object GET returns.

LocalisedText (object) or string
Deprecated

The name per language of the older shape, accepted for one more release; ignored when names is given, so a client may send back what it read, where name is the display string.

ruleType
required
string
Enum: "fixedDate" "easterRelative" "weekdayBeforeDate" "oneOff"
month
integer [ 1 .. 12 ]

fixedDate and weekdayBeforeDate.

day
integer [ 1 .. 31 ]

fixedDate and weekdayBeforeDate. 29 February occurs only in leap years.

easterOffsetDays
integer [ -60 .. 70 ]

easterRelative: days after Easter Sunday (Good Friday -2, Easter Monday 1, Ascension 39, Whit Monday 50, Corpus Christi 60).

weekday
string (Weekday)
Enum: "monday" "tuesday" "wednesday" "thursday" "friday" "saturday" "sunday"

weekdayBeforeDate: the last such weekday strictly before month/day.

date
string <date> (Date)

oneOff only.

integer or null

First year. A recurring rule without it, or with null, is valid from the current year of the company; an earlier year changes earlier years only with applyFrom. A oneOff rule has none. A rule stored before this default may still have none, which means from the beginning.

integer or null

Last year; null means open-ended, which is valid.

object (Scope)

A holiday applies to an employee when every non-empty list matches the employee on the date - location, department, holiday calendar, job position, or the employee themselves.

string or null
Default: null

Which half of the day is the holiday; null is a full holiday. Seeded 24.12. and 31.12. are secondHalf.

durationDays
integer [ 1 .. 31 ]
Default: 1

Consecutive days from each occurrence, also across New Year; only for fixedDate and oneOff. The half day part applies to every day of the span.

Responses

Request samples

Content type
application/json
{
  • "applyFrom": "2026-10-01",
  • "includeProtectedPeriods": false,
  • "names": {
    },
  • "name": {
    },
  • "ruleType": "fixedDate",
  • "month": 1,
  • "day": 1,
  • "easterOffsetDays": -60,
  • "weekday": "monday",
  • "date": "2026-10-01",
  • "validFromYear": 0,
  • "validToYear": 0,
  • "scope": {
    },
  • "halfDayPart": null,
  • "durationDays": 1
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "name": "string",
  • "names": {
    },
  • "ruleType": "fixedDate",
  • "month": 0,
  • "day": 0,
  • "easterOffsetDays": 0,
  • "weekday": "monday",
  • "date": "2026-10-01",
  • "validFromYear": 0,
  • "validToYear": 0,
  • "scope": {
    },
  • "source": "seed",
  • "catalogueKey": "string",
  • "halfDayPart": "firstHalf",
  • "durationDays": 0
}

Read a holiday rule

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "name": "string",
  • "names": {
    },
  • "ruleType": "fixedDate",
  • "month": 0,
  • "day": 0,
  • "easterOffsetDays": 0,
  • "weekday": "monday",
  • "date": "2026-10-01",
  • "validFromYear": 0,
  • "validToYear": 0,
  • "scope": {
    },
  • "source": "seed",
  • "catalogueKey": "string",
  • "halfDayPart": "firstHalf",
  • "durationDays": 0
}

Change a holiday rule

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Request Body schema: application/json
required
Any of
applyFrom
string <date> (Date)

The first day to recalculate, also in the past. Without it a change recalculates from today on, and a change that would differ on a day before today is refused with calendar-change-reaches-the-past.

includeProtectedPeriods
boolean
Default: false

Also recalculate days before the history boundary of the company and days in settled working-time periods. Without it they keep their values even from applyFrom on.

required
object (LocalisedText) non-empty

Holiday name per language, e.g. {en: German Unity Day, de: Tag der Deutschen Einheit}; the object GET returns.

LocalisedText (object) or string
Deprecated

The name per language of the older shape, accepted for one more release; ignored when names is given, so a client may send back what it read, where name is the display string.

ruleType
required
string
Enum: "fixedDate" "easterRelative" "weekdayBeforeDate" "oneOff"
month
integer [ 1 .. 12 ]

fixedDate and weekdayBeforeDate.

day
integer [ 1 .. 31 ]

fixedDate and weekdayBeforeDate. 29 February occurs only in leap years.

easterOffsetDays
integer [ -60 .. 70 ]

easterRelative: days after Easter Sunday (Good Friday -2, Easter Monday 1, Ascension 39, Whit Monday 50, Corpus Christi 60).

weekday
string (Weekday)
Enum: "monday" "tuesday" "wednesday" "thursday" "friday" "saturday" "sunday"

weekdayBeforeDate: the last such weekday strictly before month/day.

date
string <date> (Date)

oneOff only.

integer or null

First year. A recurring rule without it, or with null, is valid from the current year of the company; an earlier year changes earlier years only with applyFrom. A oneOff rule has none. A rule stored before this default may still have none, which means from the beginning.

integer or null

Last year; null means open-ended, which is valid.

object (Scope)

A holiday applies to an employee when every non-empty list matches the employee on the date - location, department, holiday calendar, job position, or the employee themselves.

string or null
Default: null

Which half of the day is the holiday; null is a full holiday. Seeded 24.12. and 31.12. are secondHalf.

durationDays
integer [ 1 .. 31 ]
Default: 1

Consecutive days from each occurrence, also across New Year; only for fixedDate and oneOff. The half day part applies to every day of the span.

Responses

Request samples

Content type
application/json
{
  • "applyFrom": "2026-10-01",
  • "includeProtectedPeriods": false,
  • "names": {
    },
  • "name": {
    },
  • "ruleType": "fixedDate",
  • "month": 1,
  • "day": 1,
  • "easterOffsetDays": -60,
  • "weekday": "monday",
  • "date": "2026-10-01",
  • "validFromYear": 0,
  • "validToYear": 0,
  • "scope": {
    },
  • "halfDayPart": null,
  • "durationDays": 1
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "name": "string",
  • "names": {
    },
  • "ruleType": "fixedDate",
  • "month": 0,
  • "day": 0,
  • "easterOffsetDays": 0,
  • "weekday": "monday",
  • "date": "2026-10-01",
  • "validFromYear": 0,
  • "validToYear": 0,
  • "scope": {
    },
  • "source": "seed",
  • "catalogueKey": "string",
  • "halfDayPart": "firstHalf",
  • "durationDays": 0
}

Delete a holiday rule

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
query Parameters
applyFrom
string <date> (Date)
Examples: applyFrom=2026-10-01

The first day to recalculate, also in the past. Without it a change that would differ on a day before today is refused with calendar-change-reaches-the-past.

includeProtectedPeriods
boolean
Default: false

Also recalculate days before the history boundary of the company and days in settled working-time periods.

header Parameters
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.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

Seed the public holidays of a region into the company calendar

Seeds the public holidays of a region (ISO 3166-2 code, e.g. DE-BY) from the holiday source of an installed country package, with names in en and de. Repeatable; existing entries with the same scope are skipped. A region no installed package knows is a bad request.

Authorizations:
bearerAuthsessionCookie
header Parameters
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.

Request Body schema: application/json
required
applyFrom
string <date> (Date)

The first day to recalculate, also in the past. Without it a change recalculates from today on, and a change that would differ on a day before today is refused with calendar-change-reaches-the-past.

includeProtectedPeriods
boolean
Default: false

Also recalculate days before the history boundary of the company and days in settled working-time periods. Without it they keep their values even from applyFrom on.

region
required
string^[A-Z]{2}-[A-Z0-9]{1,3}$

ISO 3166-2 code of a region an installed country package knows, such as DE-BY (see listHolidayRegions). Seeded holiday names exist in en and de.

object (Scope)

A holiday applies to an employee when every non-empty list matches the employee on the date - location, department, holiday calendar, job position, or the employee themselves.

extras
Array of strings unique

Keys of the extras of the region's holiday source (see listHolidayRegionExtras), such as christmasEveHalfDay. They are no statutory holidays; half days are seeded with their halfDayPart.

integer or null

First year of the seeded rules; empty or null is the current year of the company.

dryRun
boolean
Default: false

Return the rules that would be created without storing them.

Responses

Request samples

Content type
application/json
{
  • "applyFrom": "2026-10-01",
  • "includeProtectedPeriods": false,
  • "region": "string",
  • "scope": {
    },
  • "extras": [
    ],
  • "validFromYear": 0,
  • "dryRun": false
}

Response samples

Content type
application/json
{
  • "dryRun": true,
  • "created": [
    ],
  • "skippedCount": 0
}

Preview what a change of a holiday rule would recalculate

Takes the body of a write, with ruleId to change a rule, or ruleId with delete true, and answers what saving it would do, without storing anything. It names the past days the change differs on, the range it recalculates, the people and the figures of installed modules, such as attendance and leave days. Without applyFrom it answers as if the change was applied from its first past day.

Authorizations:
bearerAuthsessionCookie
header Parameters
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.

Request Body schema: application/json
required
Any of
applyFrom
string <date> (Date)

The first day to recalculate, also in the past. Without it a change recalculates from today on, and a change that would differ on a day before today is refused with calendar-change-reaches-the-past.

includeProtectedPeriods
boolean
Default: false

Also recalculate days before the history boundary of the company and days in settled working-time periods. Without it they keep their values even from applyFrom on.

required
object (LocalisedText) non-empty

Holiday name per language, e.g. {en: German Unity Day, de: Tag der Deutschen Einheit}; the object GET returns.

LocalisedText (object) or string
Deprecated

The name per language of the older shape, accepted for one more release; ignored when names is given, so a client may send back what it read, where name is the display string.

ruleType
required
string
Enum: "fixedDate" "easterRelative" "weekdayBeforeDate" "oneOff"
month
integer [ 1 .. 12 ]

fixedDate and weekdayBeforeDate.

day
integer [ 1 .. 31 ]

fixedDate and weekdayBeforeDate. 29 February occurs only in leap years.

easterOffsetDays
integer [ -60 .. 70 ]

easterRelative: days after Easter Sunday (Good Friday -2, Easter Monday 1, Ascension 39, Whit Monday 50, Corpus Christi 60).

weekday
string (Weekday)
Enum: "monday" "tuesday" "wednesday" "thursday" "friday" "saturday" "sunday"

weekdayBeforeDate: the last such weekday strictly before month/day.

date
string <date> (Date)

oneOff only.

integer or null

First year. A recurring rule without it, or with null, is valid from the current year of the company; an earlier year changes earlier years only with applyFrom. A oneOff rule has none. A rule stored before this default may still have none, which means from the beginning.

integer or null

Last year; null means open-ended, which is valid.

object (Scope)

A holiday applies to an employee when every non-empty list matches the employee on the date - location, department, holiday calendar, job position, or the employee themselves.

string or null
Default: null

Which half of the day is the holiday; null is a full holiday. Seeded 24.12. and 31.12. are secondHalf.

durationDays
integer [ 1 .. 31 ]
Default: 1

Consecutive days from each occurrence, also across New Year; only for fixedDate and oneOff. The half day part applies to every day of the span.

ruleId
string <uuid> (Uuid)
delete
boolean

Responses

Request samples

Content type
application/json
{
  • "applyFrom": "2026-10-01",
  • "includeProtectedPeriods": false,
  • "names": {
    },
  • "name": {
    },
  • "ruleType": "fixedDate",
  • "month": 1,
  • "day": 1,
  • "easterOffsetDays": -60,
  • "weekday": "monday",
  • "date": "2026-10-01",
  • "validFromYear": 0,
  • "validToYear": 0,
  • "scope": {
    },
  • "halfDayPart": null,
  • "durationDays": 1,
  • "ruleId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "delete": true
}

Response samples

Content type
application/json
{
  • "reachesPast": true,
  • "past": { },
  • "recalculation": { },
  • "people": 0,
  • "impact": {
    }
}

List the regions holidays can be seeded from or subscribed to

The regions of the holiday sources of the installed country packages, sorted by name; without a country package there are none. Small bounded list; the response is {items} only.

Authorizations:
bearerAuthsessionCookie
query Parameters
withFeed
boolean

Only the regions with an official feed a holiday calendar can subscribe to.

header Parameters
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.

Responses

Response samples

Content type
application/json
{}

List the extras a region's holidays can be seeded with

The customary days the holiday source of the region offers besides its statutory holidays, such as Christmas Eve afternoon. Small bounded list; the response is {items} only. A region no installed package knows is not found.

Authorizations:
bearerAuthsessionCookie
path Parameters
region
required
string^[A-Z]{2}-[A-Z0-9]{1,3}$
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Download a holiday import template

The header row of a holiday import in the caller's language, as an XLSX workbook (default) or a UTF-8 CSV file with semicolons. The second sheet of the workbook explains the columns and lists the codes of the holiday calendars.

Authorizations:
bearerAuthsessionCookie
query Parameters
format
string
Default: "xlsx"
Enum: "xlsx" "csv"
header Parameters
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.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

Import holiday rules from a CSV or XLSX file

Columns, headed in any supported language or with their keys, name.<language> (one per language, at least one filled), startDate, optional durationDays (1 to 31), recurring (yes/no; yes repeats the date every year from the start year), halfDay (firstHalf or secondHalf) and holidayCalendar (a calendar code). The format is recognised by the content, not by the declared content type. All or nothing; rows identical to an existing rule are skipped; dryRun checks only.

Authorizations:
bearerAuthsessionCookie
header Parameters
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.

Request Body schema: multipart/form-data
required
file
required
string <binary>
dryRun
boolean
Default: false
applyFrom
string <date> (Date)

The first day to recalculate, also in the past; without it the new rules recalculate from today on.

includeProtectedPeriods
boolean
Default: false

Responses

Response samples

Content type
application/json
{
  • "dryRun": true,
  • "created": 0,
  • "skipped": 0,
  • "rows": [
    ]
}

List the generated holidays of a period

Public holidays that apply to the caller (or to employeeId when that employee is in the caller's scope; anybody else gets 404) in the period. Names are resolved to the caller's language. Holidays are company data, not personal data, so every employee may read their own.

Authorizations:
bearerAuthsessionCookie
query Parameters
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
required
string <date> (Date)
Examples: from=2026-10-01
to
required
string <date> (Date)
Examples: to=2026-10-01
locationId
string <uuid> (Uuid)
Examples: locationId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
departmentId
string <uuid> (Uuid)
Examples: departmentId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
employeeId
string <uuid> (Uuid)
Examples: employeeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Only holidays that apply to this employee.

header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

List weekly off day rules

Authorizations:
bearerAuthsessionCookie
query Parameters
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.

header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Create a weekly off day rule

Authorizations:
bearerAuthsessionCookie
header Parameters
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 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
Any of
applyFrom
string <date> (Date)

The first day to recalculate, also in the past. Without it a change recalculates from today on, and a change that would differ on a day before today is refused with calendar-change-reaches-the-past.

includeProtectedPeriods
boolean
Default: false

Also recalculate days before the history boundary of the company and days in settled working-time periods. Without it they keep their values even from applyFrom on.

required
object (LocalisedText) non-empty

Rule name per language, the object GET returns.

LocalisedText (object)
Deprecated

The name per language of the older shape, accepted for one more release; ignored when names is given, so a client may send back what it read, where name is the display string.

pattern
required
string
Enum: "everyWeek" "nthWeekdayOfMonth"
weekday
required
string (Weekday)
Enum: "monday" "tuesday" "wednesday" "thursday" "friday" "saturday" "sunday"
positions
Array of integers non-empty unique
Items Enum: -1 1 2 3 4 5

nthWeekdayOfMonth: occurrence counted from the 1st of the month (days 1-7 are the 1st); -1 is the last.

Date (string) or null
Date (string) or null
Uuid (string) or null

Null applies to the whole company; otherwise to employees whose effective model it is.

Responses

Request samples

Content type
application/json
{
  • "applyFrom": "2026-10-01",
  • "includeProtectedPeriods": false,
  • "names": {
    },
  • "name": {
    },
  • "pattern": "everyWeek",
  • "weekday": "monday",
  • "positions": [
    ],
  • "validFrom": "2026-10-01",
  • "validTo": "2026-10-01",
  • "workingTimeModelId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "name": "string",
  • "names": {
    },
  • "pattern": "everyWeek",
  • "weekday": "monday",
  • "positions": [
    ],
  • "validFrom": "2026-10-01",
  • "validTo": "2026-10-01",
  • "workingTimeModelId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Read a weekly off day rule

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "name": "string",
  • "names": {
    },
  • "pattern": "everyWeek",
  • "weekday": "monday",
  • "positions": [
    ],
  • "validFrom": "2026-10-01",
  • "validTo": "2026-10-01",
  • "workingTimeModelId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Change a weekly off day rule

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
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.

Request Body schema: application/json
required
Any of
applyFrom
string <date> (Date)

The first day to recalculate, also in the past. Without it a change recalculates from today on, and a change that would differ on a day before today is refused with calendar-change-reaches-the-past.

includeProtectedPeriods
boolean
Default: false

Also recalculate days before the history boundary of the company and days in settled working-time periods. Without it they keep their values even from applyFrom on.

required
object (LocalisedText) non-empty

Rule name per language, the object GET returns.

LocalisedText (object)
Deprecated

The name per language of the older shape, accepted for one more release; ignored when names is given, so a client may send back what it read, where name is the display string.

pattern
required
string
Enum: "everyWeek" "nthWeekdayOfMonth"
weekday
required
string (Weekday)
Enum: "monday" "tuesday" "wednesday" "thursday" "friday" "saturday" "sunday"
positions
Array of integers non-empty unique
Items Enum: -1 1 2 3 4 5

nthWeekdayOfMonth: occurrence counted from the 1st of the month (days 1-7 are the 1st); -1 is the last.

Date (string) or null
Date (string) or null
Uuid (string) or null

Null applies to the whole company; otherwise to employees whose effective model it is.

Responses

Request samples

Content type
application/json
{
  • "applyFrom": "2026-10-01",
  • "includeProtectedPeriods": false,
  • "names": {
    },
  • "name": {
    },
  • "pattern": "everyWeek",
  • "weekday": "monday",
  • "positions": [
    ],
  • "validFrom": "2026-10-01",
  • "validTo": "2026-10-01",
  • "workingTimeModelId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "name": "string",
  • "names": {
    },
  • "pattern": "everyWeek",
  • "weekday": "monday",
  • "positions": [
    ],
  • "validFrom": "2026-10-01",
  • "validTo": "2026-10-01",
  • "workingTimeModelId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Delete a weekly off day rule

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
query Parameters
applyFrom
string <date> (Date)
Examples: applyFrom=2026-10-01

The first day to recalculate, also in the past. Without it a change that would differ on a day before today is refused with calendar-change-reaches-the-past.

includeProtectedPeriods
boolean
Default: false

Also recalculate days before the history boundary of the company and days in settled working-time periods.

header Parameters
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.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

Preview what a change of a weekly off rule would recalculate

Takes the body of a write, with ruleId to change a rule, or ruleId with delete true, and answers what saving it would do, without storing anything. It names the past days the change differs on, the range it recalculates, the people and the figures of installed modules, such as attendance and leave days. Without applyFrom it answers as if the change was applied from its first past day.

Authorizations:
bearerAuthsessionCookie
header Parameters
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.

Request Body schema: application/json
required
Any of
applyFrom
string <date> (Date)

The first day to recalculate, also in the past. Without it a change recalculates from today on, and a change that would differ on a day before today is refused with calendar-change-reaches-the-past.

includeProtectedPeriods
boolean
Default: false

Also recalculate days before the history boundary of the company and days in settled working-time periods. Without it they keep their values even from applyFrom on.

required
object (LocalisedText) non-empty

Rule name per language, the object GET returns.

LocalisedText (object)
Deprecated

The name per language of the older shape, accepted for one more release; ignored when names is given, so a client may send back what it read, where name is the display string.

pattern
required
string
Enum: "everyWeek" "nthWeekdayOfMonth"
weekday
required
string (Weekday)
Enum: "monday" "tuesday" "wednesday" "thursday" "friday" "saturday" "sunday"
positions
Array of integers non-empty unique
Items Enum: -1 1 2 3 4 5

nthWeekdayOfMonth: occurrence counted from the 1st of the month (days 1-7 are the 1st); -1 is the last.

Date (string) or null
Date (string) or null
Uuid (string) or null

Null applies to the whole company; otherwise to employees whose effective model it is.

ruleId
string <uuid> (Uuid)
delete
boolean

Responses

Request samples

Content type
application/json
{
  • "applyFrom": "2026-10-01",
  • "includeProtectedPeriods": false,
  • "names": {
    },
  • "name": {
    },
  • "pattern": "everyWeek",
  • "weekday": "monday",
  • "positions": [
    ],
  • "validFrom": "2026-10-01",
  • "validTo": "2026-10-01",
  • "workingTimeModelId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "ruleId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "delete": true
}

Response samples

Content type
application/json
{
  • "reachesPast": true,
  • "past": { },
  • "recalculation": { },
  • "people": 0,
  • "impact": {
    }
}

Daily targets of an employee for a date range

Per day: scheduled target, absences and the resulting targetSeconds (the target-reduction view). Absences are complete for the employee and HR. For a manager in scope, sickness absences show source: absent and no category when the company setting managerSeesSickness is off. Everybody else gets 404.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
query Parameters
from
required
string <date> (Date)
Examples: from=2026-10-01
to
required
string <date> (Date)
Examples: to=2026-10-01
workingDaysOnly
boolean
Default: false

Leaves out the days the weekly pattern gives off (nonWorkingDay, weeklyOff, rosterOff, and a holiday on such a day); holidays on working weekdays stay.

header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "from": "2026-10-01",
  • "to": "2026-10-01",
  • "days": [
    ]
}

Own daily targets for a date range

Same response as getWorkingDayCalendar for the caller; absences are complete.

Authorizations:
bearerAuthsessionCookie
query Parameters
from
required
string <date> (Date)
Examples: from=2026-10-01
to
required
string <date> (Date)
Examples: to=2026-10-01
workingDaysOnly
boolean
Default: false

Leaves out the days the weekly pattern gives off (nonWorkingDay, weeklyOff, rosterOff, and a holiday on such a day); holidays on working weekdays stay.

header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "from": "2026-10-01",
  • "to": "2026-10-01",
  • "days": [
    ]
}

Dashboard

Next public holidays

The next holidays of the caller's own holiday calendar. Company-wide directory-level information.

Authorizations:
bearerAuthsessionCookie
query Parameters
count
integer [ 1 .. 10 ]
Default: 5

Number of holidays.

header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Contract hours versus working-time model

Employees whose weekly contract hours differ from the weekly target of their assigned working-time model.

Authorizations:
bearerAuthsessionCookie
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "totalCount": 0,
  • "items": [
    ]
}

Holiday calendar

All public holidays of the caller's own holiday calendar in the current week (Monday to Sunday), month or year, named in the caller's language, with the free half of a half holiday and whether the holiday is past. Empty when the range has none.

Authorizations:
bearerAuthsessionCookie
query Parameters
range
string
Default: "year"
Enum: "week" "month" "year"

The current week, month or year; the year unless given.

header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "range": "week",
  • "from": "2026-10-01",
  • "to": "2026-10-01",
  • "items": [
    ]
}

My upcoming dates

The caller's own birthday and work anniversary and the public holidays of their calendar within the next 30 days, soonest first.

Authorizations:
bearerAuthsessionCookie
header Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}