REST API: Shift planning
This page belongs to the REST API reference, which covers the address, authentication, scopes, pagination and errors. Every path is appended to https://api.litelog.de/api. In the examples $KEY stands for your API key; the example values are made up.
Overview
| Call | Purpose | Scope |
|---|---|---|
GET /v1/shifts |
List planned shifts (Dienstplan) | shifts:read |
POST /v1/shifts |
Create a single shift | shifts:write |
POST /v1/shifts/bulk |
Create up to 100 shifts in one call | shifts:write |
POST /v1/shifts/generate |
Materialise planned instances of an existing series | shifts:write |
POST /v1/shift-series |
Create a series (a shift that repeats) | shifts:write |
POST /v1/shift-series/{id}/people |
Change the people of a series, for a period or for good | shifts:write |
POST /v1/shifts/auto-assign |
Propose a roster for open shifts (automatic planning) | shifts:read |
POST /v1/shifts/auto-assign/apply |
Apply roster assignments | shifts:write |
GET /v1/shifts/conflicts |
Planning warnings (soft — never blocks) | shifts:read |
GET /v1/shifts/target-actual |
Target vs. actual hours per employee (payroll pre-check) | shifts:read |
GET /v1/shifts/work-days |
Target, plan and actual per person and calendar day | shifts:read |
GET /v1/shifts/attendance |
Planned vs. actual attendance of every shift in a range | shifts:read |
GET /v1/shifts/{id} |
Get a shift | shifts:read |
PATCH /v1/shifts/{id} |
Update a shift instance | shifts:write |
DELETE /v1/shifts/{id} |
Cancel a shift (status → cancelled) | shifts:write |
GET /v1/shifts/{id}/replacements |
Suggest replacements for one shift (who can step in) | shifts:read |
GET /v1/shifts/{id}/attendance |
Actual attendance on a shift | shifts:read |
POST /v1/shifts/{id}/checkins |
Check employees into a shift (live or retro) | shifts:write |
Notes
For shift planning and time tracking: employees are referenced via account_id — map personnel numbers to account_ids with GET /v1/accounts?custom_id=…. Duration fields (pause_ms/work_ms/total_ms) are always server-computed and enforce the property's minimum-pause rules; clients cannot set them. Series rules (recurrence, notifications, proof-of-life) remain portal-only — the API works on shift instances.
GET /v1/shifts
Read the shift plan (from/to, max. 366 days; filters: property_id, account_id = planned staffing, include_cancelled). The list follows the key account's person scope: a key of a subcontractor account only sees shifts with itself and its own employees. Each shift says when it was created and last changed (created_at, updated_at).
Scope: shifts:read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
from |
query | string (date) | yes | — |
to |
query | string (date) | yes | — |
property_id |
query | integer | no | — |
account_id |
query | integer | no | — |
include_cancelled |
query | boolean | no | — |
Example call
curl "https://api.litelog.de/api/v1/shifts?from=2026-12-07&to=2026-12-13&property_id=123" \
-H "X-Api-Key: $KEY"
Example response (200)
{
"data": [
{
"uuid": "3f6b2c1e-8a4d-4e7b-9c15-2d7a6e0b4f31",
"series_id": 9141,
"property_id": 123,
"name": "Frühdienst Reinigung",
"status": "scheduled",
"start_ts": "2026-12-07T05:00:00.000Z",
"end_ts": "2026-12-07T13:00:00.000Z",
"checkin_start_ts": "2026-12-07T05:00:00.000Z",
"checkin_end_ts": "2026-12-07T13:00:00.000Z",
"checkout_start_ts": "2026-12-07T05:00:00.000Z",
"checkout_end_ts": "2026-12-07T13:00:00.000Z",
"checkins_count": 0,
"checkouts_count": 0,
"checkin_requirement_mode": null,
"checkout_requirement_mode": null,
"required_checkins": null,
"required_checkouts": null,
"required_headcount": 2,
"required_qualifications": null,
"effective_required_headcount": 2,
"assignees": [
{
"account_id": 41,
"name": "Erika Musterfrau"
},
{
"account_id": 42,
"name": "Max Mustermann"
}
],
"created_at": "2026-12-01T08:15:00.000Z",
"updated_at": "2026-12-01T08:15:00.000Z"
},
{
"uuid": "b81d5f02-63c7-4a9e-8e2f-1c4d9a7b3e60",
"series_id": 512,
"property_id": 123,
"name": "Unterhaltsreinigung",
"status": "scheduled",
"start_ts": "2026-12-08T05:00:00.000Z",
"end_ts": "2026-12-08T09:00:00.000Z",
"checkin_start_ts": "2026-12-08T04:45:00.000Z",
"checkin_end_ts": "2026-12-08T05:15:00.000Z",
"checkout_start_ts": "2026-12-08T08:45:00.000Z",
"checkout_end_ts": "2026-12-08T09:15:00.000Z",
"checkins_count": 0,
"checkouts_count": 0,
"checkin_requirement_mode": "minimum",
"checkout_requirement_mode": "minimum",
"required_checkins": 1,
"required_checkouts": 1,
"required_headcount": null,
"required_qualifications": null,
"effective_required_headcount": 1,
"assignees": [],
"created_at": "2026-12-01T02:00:00.000Z",
"updated_at": "2026-12-01T02:00:00.000Z"
}
],
"total": 2
}
POST /v1/shifts
Create a single shift.
Create shift(s) — incl. planned staffing (assignee_account_ids), staffing target (required_headcount) and qualification demand (required_qualifications: [{qualification_id, count}], sum ≤ staffing target, else 422 QUALIFICATION_DEMAND_EXCEEDS_HEADCOUNT); check-in/out windows optional (default: the whole shift). Control settings you leave out (check-in requirement, auto check-out, minimum duration/tolerance) inherit from the property or tenant standard.
Scope: shifts:write
Body fields (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
series_id |
integer | no | — |
property_id |
integer | yes | — |
start_ts |
string (date-time) | yes | — |
end_ts |
string (date-time) | yes | — |
checkin_start_ts |
string (date-time) | no | — |
checkin_end_ts |
string (date-time) | no | — |
checkout_start_ts |
string (date-time) | no | — |
checkout_end_ts |
string (date-time) | no | — |
name |
string or null | no | — |
checkin_requirement_mode |
string | no | Values: optional, minimum, fixed. |
checkout_requirement_mode |
string | no | Values: optional, minimum, fixed. |
required_checkins |
integer or null | no | — |
required_checkouts |
integer or null | no | — |
required_headcount |
integer or null | no | Explicit staffing target (Soll-Besetzung); overrides the derived demand. null clears it. 1 – 999. |
required_qualifications |
array (object) or null | no | Qualification demand: [{qualification_id, count}], at most 20 entries, each qualification once. Needs required_headcount (else 422 QUALIFICATION_DEMAND_NEEDS_HEADCOUNT); Σ count ≤ required_headcount (else 422 QUALIFICATION_DEMAND_EXCEEDS_HEADCOUNT). null / [] = none. At most 20 items. |
assignee_account_ids |
array (integer) | no | — |
Example call
curl -X POST "https://api.litelog.de/api/v1/shifts" \
-H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
-d '{
"property_id": 123,
"start_ts": "2026-12-07T06:00:00+01:00",
"end_ts": "2026-12-07T14:00:00+01:00",
"name": "Frühdienst Reinigung",
"required_headcount": 2,
"assignee_account_ids": [
41,
42
]
}'
Example response (201)
{
"data": {
"uuid": "3f6b2c1e-8a4d-4e7b-9c15-2d7a6e0b4f31",
"series_id": 9141,
"property_id": 123,
"name": "Frühdienst Reinigung",
"status": "scheduled",
"start_ts": "2026-12-07T05:00:00.000Z",
"end_ts": "2026-12-07T13:00:00.000Z",
"checkin_start_ts": "2026-12-07T05:00:00.000Z",
"checkin_end_ts": "2026-12-07T13:00:00.000Z",
"checkout_start_ts": "2026-12-07T05:00:00.000Z",
"checkout_end_ts": "2026-12-07T13:00:00.000Z",
"checkins_count": 0,
"checkouts_count": 0,
"checkin_requirement_mode": null,
"checkout_requirement_mode": null,
"required_checkins": null,
"required_checkouts": null,
"required_headcount": 2,
"required_qualifications": null,
"effective_required_headcount": null,
"assignees": [
{
"account_id": 41,
"name": "Erika Musterfrau"
},
{
"account_id": 42,
"name": "Max Mustermann"
}
],
"created_at": "2026-12-01T08:15:00.000Z",
"updated_at": "2026-12-01T08:15:00.000Z"
}
}
POST /v1/shifts/bulk
Create up to 100 shifts in one call.
Create shift(s) — incl. planned staffing (assignee_account_ids), staffing target (required_headcount) and qualification demand (required_qualifications: [{qualification_id, count}], sum ≤ staffing target, else 422 QUALIFICATION_DEMAND_EXCEEDS_HEADCOUNT); check-in/out windows optional (default: the whole shift). Control settings you leave out (check-in requirement, auto check-out, minimum duration/tolerance) inherit from the property or tenant standard.
Scope: shifts:write
Body fields (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
instances |
array (object) | yes | At most 100 items. |
assignee_account_ids |
array (integer) | no | — |
Example call
curl -X POST "https://api.litelog.de/api/v1/shifts/bulk" \
-H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
-d '{
"instances": [
{
"property_id": 123,
"start_ts": "2026-12-09T05:00:00Z",
"end_ts": "2026-12-09T13:00:00Z",
"name": "Frühdienst Reinigung"
},
{
"property_id": 124,
"start_ts": "2026-12-09T09:00:00Z",
"end_ts": "2026-12-09T12:00:00Z",
"name": "Endreinigung"
}
],
"assignee_account_ids": [
42
]
}'
Example response (201)
{
"data": {
"created": 2,
"uuids": [
"0c9e7a54-2b1f-4d38-a6c3-5e8f1b2d7a90",
"7d2a4b6c-9e1f-4c05-b3a8-6f0e2d1c4b59"
]
}
}
POST /v1/shifts/generate
Materialise instances of an existing series for a date range (the timezone always comes from the property).
Scope: shifts:write
Body fields (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
series_id |
integer | yes | — |
property_id |
integer | yes | — |
from |
string (date) | yes | — |
to |
string (date) | yes | — |
Example call
curl -X POST "https://api.litelog.de/api/v1/shifts/generate" \
-H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
-d '{
"series_id": 512,
"property_id": 123,
"from": "2026-12-14",
"to": "2026-12-20"
}'
Example response (201)
{
"data": {
"created": 5
}
}
POST /v1/shift-series
Creates a series: a shift that repeats daily or weekly, with its people, with or without end. It is the record the portal creates with "Wiederholung" in the shift form. LiteLog creates the shifts of the next 90 days at once (shifts_created, generated_until) and then adds the next day every day. A plan that repeats needs one series per rhythm, not one shift per day.
Times are wall clock in the time zone of the property. The series takes its check-in and check-out windows from the property, as a new series in the portal does; holidays do not skip a day. The planned people are notified as in the portal. Double bookings, absences and working-time rules never block; check them beforehand with GET /v1/shifts/conflicts.
The same idempotency_key (or the header Idempotency-Key) creates nothing twice: the answer is then 200 with the series created first and created: false. The same key with another body answers 422 IDEMPOTENCY_KEY_PAYLOAD_MISMATCH. Refused before anything is written: an unknown person or a person without access to the property (409 ASSIGNEE_NO_PROPERTY_ACCESS), a first shift in the past (422 SERIES_START_IN_PAST, time of the property), an end_date not after start_date (a single day is one shift: POST /v1/shifts), the package limit on planned people (403, reason: quota_exceeded). A series plans the times of other people: the key's role needs "see the times of others" or the right to change time tracking; a key that sees only its own people (subcontractor) gets 403. If a later step fails after the series was created, the call answers 500 SERIES_PARTIALLY_WRITTEN with errors[0].series_id; repeat it with the same key, it answers the series. The same key is compared by meaning: the order of weekdays and people, end_date: null and interval_weeks: 1 are the same request.
Scope: shifts:write
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key |
header | string (uuid) | no | Second spelling of idempotency_key. Both must match when both are sent. |
Body fields (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
property_id |
integer | yes | Property of the series. |
name |
string | yes | Name of the shift. At most 255 characters. |
start_date |
string (date) | yes | First day, today or later. |
start_time |
string | yes | Start, HH:mm, wall clock of the property. |
end_time |
string | yes | End, HH:mm. At or before the start = the next day. Must differ from the start. |
repeat |
string | yes | daily = every day, weekly = on the weekdays in weekdays. |
interval_weeks |
integer | no | weekly only: every n-th week, 1 to 52. Default 1. |
weekdays |
array (integer) | no | weekly only, required there: 0 = Sunday to 6 = Saturday. |
end_date |
string (date) or null | no | Last day (inclusive). Absent or null = no end. |
assignee_account_ids |
array (integer) | no | Planned people of every shift of the series. At most 100. |
required_headcount |
integer | no | How many people each shift needs, 1 to 999. |
instructions |
string | no | Note for the people (portal: Anweisungen), shown at every shift. At most 2000 characters. |
idempotency_key |
string (uuid) | no | Becomes the id of the series. The same key creates nothing twice. |
Example call
curl -X POST "https://api.litelog.de/api/v1/shift-series" \
-H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
-H "Idempotency-Key: 2d0a3c5e-9d2f-4f0a-9c1b-6f0a2b7d1e11" \
-d '{
"property_id": 123,
"name": "Büro Nord",
"start_date": "2027-01-01",
"start_time": "06:00",
"end_time": "08:00",
"repeat": "weekly",
"weekdays": [
1,
2,
3,
4,
5
],
"assignee_account_ids": [
34
]
}'
Example response (201)
{
"data": {
"series_id": 512,
"property_id": 123,
"shifts_created": 64,
"generated_until": "2027-03-02",
"created": true
}
}
POST /v1/shift-series/{id}/people
Adds or removes people on a series. {id} is the series_id of a shift from GET /v1/shifts; the id of a day that was changed separately leads to its series.
- Period (
fromandto, both inclusive): only the planned shifts of those days change, each as a day of its own. The series keeps its people and goes on with them afterto. Shifts with recorded time stay unchanged (shifts_skipped_with_checkins). Only shifts that exist are changed (LiteLog creates them 90 days ahead), at most 200 per call. - From a day on, for good (
fromalone; withoutfromandtothe change applies from today): LiteLog splits the series, like "From this day on" when editing in the portal. The old series ends the day before and keeps its people. A new series (new_series_id, same settings) goes on with the new people. Shifts already planned from that day on move to the new series with their ids; nothing is deleted. Days changed separately keep their people (days_changed_separately). Past shifts and shifts with recorded time stay with the old series: without a date the new series starts the day after the last shift that has already begun. A series with no shift before that day is changed in place (new_series_id: null). Thefromof the answer names the first day of the rhythm on or after the requested day. A series with several time settings answers422 SERIES_SPLIT_NOT_SUPPORTED; change it in the portal.
The period starts today or later (else 422 SERIES_PERIOD_IN_PAST); a shift of the period, or on or after a given from, that has already begun answers 422 SERIES_SHIFT_BEGUN. A series that has ended answers 422 SERIES_ENDED; if it goes on as a later version, errors[0] names its next_series_id. last_shift_day names the last day with a shift, next_version a later version of the series (settings changed from a day on, its own series_id, not reached by this call). The people are notified as in the portal; notify: false switches that off. A person without access to the property answers 409 ASSIGNEE_NO_PROPERTY_ACCESS, a single shift without repetition 422 NOT_A_SERIES. The key needs the right to change the shift plan and must not see only its own people.
Scope: shifts:write
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | integer | yes | series_id of a shift of the series. |
Body fields (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
property_id |
integer | yes | Property of the series. |
add_account_ids |
array (integer) | no | People to add. At least one person in one of the two lists. |
remove_account_ids |
array (integer) | no | People to take off. |
from |
string (date) | no | First day: with to the period, alone from that day on, for good. Today or later. |
to |
string (date) | no | Last day of the period (inclusive); needs from. |
notify |
boolean | no | false = the people are not notified. Default true. |
Example call
curl -X POST "https://api.litelog.de/api/v1/shift-series/512/people" \
-H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
-d '{
"property_id": 123,
"add_account_ids": [
35
],
"remove_account_ids": [
34
],
"from": "2027-01-04",
"to": "2027-01-15"
}'
Example response (200)
{
"data": {
"series_id": 512,
"property_id": 123,
"mode": "period",
"from": "2027-01-04",
"to": "2027-01-15",
"people_now": [
34
],
"people_after": [
34
],
"shifts_changed": 9,
"shifts_unchanged": 0,
"shifts_skipped_with_checkins": 1,
"days_changed_separately": 0,
"last_shift_day": "2027-03-02",
"next_version": null,
"new_series_id": null
}
}
POST /v1/shifts/auto-assign
Calculates staffing for the open shifts of a period and writes nothing. The answer names the proposals and, for each shift left open, the reason. Nothing is applied until POST /v1/shifts/auto-assign/apply.
Scope: shifts:read
Body fields (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
property_ids |
array (integer) | yes | At most 20 items. |
from |
string (date) | yes | — |
to |
string (date) | yes | At most 31 days after from. |
Example call
curl -X POST "https://api.litelog.de/api/v1/shifts/auto-assign" \
-H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
-d '{
"property_ids": [
123,
124
],
"from": "2026-12-07",
"to": "2026-12-13"
}'
Example response (200)
{
"data": {
"window": {
"from": "2026-12-07",
"to": "2026-12-13"
},
"proposals": [
{
"shift_uuid": "b81d5f02-63c7-4a9e-8e2f-1c4d9a7b3e60",
"property_id": 123,
"property_name": "Filiale Nord",
"start_ts": "2026-12-08T05:00:00.000Z",
"end_ts": "2026-12-08T09:00:00.000Z",
"account_id": 42,
"account_name": "Max Mustermann"
}
],
"unassigned": [
{
"shift_uuid": "7d2a4b6c-9e1f-4c05-b3a8-6f0e2d1c4b59",
"property_id": 124,
"property_name": "Haus Seeblick — Wohnung 3",
"start_ts": "2026-12-09T09:00:00.000Z",
"end_ts": "2026-12-09T12:00:00.000Z",
"missing": 1,
"reason": "missing_qualification",
"unfilled_qualifications": [
{
"qualification_id": 3,
"missing": 1
}
]
}
],
"accounts_without_schedule": [
{
"account_id": 42,
"name": "Max Mustermann"
}
],
"stats": {
"status": "OPTIMAL",
"solve_ms": 184,
"candidates": 6
},
"solver_degraded": false
}
}
POST /v1/shifts/auto-assign/apply
Writes the staffing that POST /v1/shifts/auto-assign proposed. Every assignment is checked again before it is written.
Scope: shifts:write
Body fields (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
assignments |
array (object) | yes | At most 200 items. |
Example call
curl -X POST "https://api.litelog.de/api/v1/shifts/auto-assign/apply" \
-H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
-d '{
"assignments": [
{
"shift_uuid": "b81d5f02-63c7-4a9e-8e2f-1c4d9a7b3e60",
"account_id": 42
},
{
"shift_uuid": "3f6b2c1e-8a4d-4e7b-9c15-2d7a6e0b4f31",
"account_id": 41
}
]
}'
Example response (200)
{
"data": {
"applied": [
{
"shift_uuid": "b81d5f02-63c7-4a9e-8e2f-1c4d9a7b3e60",
"property_id": 123,
"property_name": "Filiale Nord",
"start_ts": "2026-12-08T05:00:00.000Z",
"end_ts": "2026-12-08T09:00:00.000Z",
"account_ids": [
42
]
}
],
"skipped": [
{
"shift_uuid": "3f6b2c1e-8a4d-4e7b-9c15-2d7a6e0b4f31",
"reason": "already_assigned"
}
]
}
}
GET /v1/shifts/conflicts
Planning warnings (never blocking): double bookings, absences, German working-time-law checks (rest/daily/weekly hours) and the visit limit (weekly).
Scope: shifts:read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
account_ids |
query | string | no | CSV of employee account ids. |
property_ids |
query | string | no | CSV of property ids — adds the weekly visit-limit counts. |
start_ts |
query | string (date-time) | yes | — |
end_ts |
query | string (date-time) | yes | — |
exclude_shift_uuid |
query | string (uuid) | no | Excludes an existing shift (edit flows) from all checks. |
Example call
curl "https://api.litelog.de/api/v1/shifts/conflicts?account_ids=41,42&property_ids=123&start_ts=2026-12-10T05:00:00Z&end_ts=2026-12-10T13:00:00Z" \
-H "X-Api-Key: $KEY"
Example response (200)
{
"data": {
"conflicts": [
{
"account_id": 41,
"property_name": "Haus Seeblick — Wohnung 3",
"start_ts": "2026-12-10T09:00:00.000Z",
"end_ts": "2026-12-10T12:00:00.000Z",
"kind": "shift"
},
{
"account_id": 42,
"property_name": "",
"start_ts": "2026-12-10",
"end_ts": "2026-12-11",
"kind": "absence",
"status": "pending"
}
],
"checked_until": "2027-03-01T08:15:00.000Z",
"arbzg": [
{
"account_id": 41,
"rule": "dailyHours",
"detail": {
"total_minutes": 660,
"limit_minutes": 600
}
}
],
"weekly": [
{
"property_id": 123,
"count": 4,
"limit": 5
}
]
}
}
GET /v1/shifts/target-actual
Target vs. actual hours per employee (from/to, optional property_ids) — payroll pre-check.
Scope: shifts:read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
from |
query | string (date) | yes | — |
to |
query | string (date) | yes | — |
property_ids |
query | string | no | CSV of property ids — restricts the planned side. |
Example call
curl "https://api.litelog.de/api/v1/shifts/target-actual?from=2026-12-01&to=2026-12-31&property_ids=123,124" \
-H "X-Api-Key: $KEY"
Example response (200)
{
"data": [
{
"account_id": 41,
"name": "Erika Musterfrau",
"planned_ms": 576000000,
"planned_shifts": 20,
"actual_ms": 572400000,
"actual_entries": 20,
"contract_ms": 604800000,
"balance_ms": 5400000
},
{
"account_id": 42,
"name": "Max Mustermann",
"planned_ms": 172800000,
"planned_shifts": 6,
"actual_ms": 169200000,
"actual_entries": 6,
"contract_ms": null,
"balance_ms": null
}
]
}
GET /v1/shifts/work-days
Day rows: per person and calendar day the target (work-schedule model), the plan (shifts) and the actual (time entries) with first clock-in, last clock-out, break, difference to plan and target and the absence of the day (from/to, max. 62 days; filters: property_id, account_id; paged, newest day first). The rows behind the totals of /v1/shifts/target-actual.
Scope: shifts:read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
page |
query | integer | no | Default: 1; at least 1. |
pageSize |
query | integer | no | Default: 50; 1 – 100. |
from |
query | string (date) | yes | — |
to |
query | string (date) | yes | — |
property_id |
query | integer | no | — |
account_id |
query | integer | no | — |
Example call
curl "https://api.litelog.de/api/v1/shifts/work-days?from=2026-12-07&to=2026-12-08&account_id=41" \
-H "X-Api-Key: $KEY"
Example response (200)
{
"data": [
{
"account_id": 41,
"day": "2026-12-08",
"contract_ms": 0,
"absence_type": "vacation",
"planned_ms": 0,
"planned_shifts": 0,
"actual_ms": 0,
"pause_ms": 0,
"entries": 0,
"first_start_ts": null,
"last_end_ts": null,
"running": false,
"diff_plan_ms": 0,
"diff_contract_ms": 0,
"paid_ms": 28800000,
"absence_paid": true,
"account_name": "Erika Musterfrau"
},
{
"account_id": 41,
"day": "2026-12-07",
"contract_ms": 28800000,
"absence_type": null,
"planned_ms": 28800000,
"planned_shifts": 1,
"actual_ms": 26760000,
"pause_ms": 1800000,
"entries": 1,
"first_start_ts": "2026-12-07T05:02:00.000Z",
"last_end_ts": "2026-12-07T12:58:00.000Z",
"running": false,
"diff_plan_ms": -2040000,
"diff_contract_ms": -2040000,
"paid_ms": 26760000,
"absence_paid": null,
"account_name": "Erika Musterfrau"
}
],
"total": 2,
"page": 1,
"pageSize": 50
}
GET /v1/shifts/attendance
Planned and actual attendance of every shift in a date range in one call (from/to, max. 92 days; filters: property_id, account_id, include_cancelled; paged). Per shift the people with planned, status (present, checked_out, missing), check-in and check-out, timing verdict, deviation in milliseconds and the matching time entries. Planned without a time entry = missing, attended without being planned = planned: false; an entry under one minute does not count as attendance.
Scope: shifts:read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
page |
query | integer | no | Default: 1; at least 1. |
pageSize |
query | integer | no | Default: 50; 1 – 100. |
from |
query | string (date) | yes | — |
to |
query | string (date) | yes | — |
property_id |
query | integer | no | — |
account_id |
query | integer | no | Only shifts this employee is planned for. |
include_cancelled |
query | string | no | Values: true, false. |
Example call
curl "https://api.litelog.de/api/v1/shifts/attendance?from=2026-12-07&to=2026-12-07&property_id=123" \
-H "X-Api-Key: $KEY"
Example response (200)
{
"data": [
{
"shift": {
"uuid": "3f6b2c1e-8a4d-4e7b-9c15-2d7a6e0b4f31",
"series_id": 9141,
"property_id": 123,
"name": "Frühdienst Reinigung",
"status": "scheduled",
"start_ts": "2026-12-07T05:00:00.000Z",
"end_ts": "2026-12-07T13:00:00.000Z",
"checkin_start_ts": "2026-12-07T05:00:00.000Z",
"checkin_end_ts": "2026-12-07T13:00:00.000Z",
"checkout_start_ts": "2026-12-07T05:00:00.000Z",
"checkout_end_ts": "2026-12-07T13:00:00.000Z",
"checkins_count": 2,
"checkouts_count": 1,
"checkin_requirement_mode": null,
"checkout_requirement_mode": null,
"required_checkins": null,
"required_checkouts": null,
"required_headcount": 2,
"required_qualifications": null,
"effective_required_headcount": 2,
"assignees": [
{
"account_id": 41,
"name": "Erika Musterfrau"
},
{
"account_id": 42,
"name": "Max Mustermann"
}
],
"created_at": "2026-12-01T08:15:00.000Z",
"updated_at": "2026-12-01T08:15:00.000Z"
},
"people": [
{
"account_id": 41,
"account_name": "Erika Musterfrau",
"planned": true,
"status": "checked_out",
"checkin_ts": "2026-12-07T05:02:00.000Z",
"checkout_ts": "2026-12-07T12:58:00.000Z",
"checkin_timing": "on_time",
"checkout_timing": "on_time",
"checkin_deviation_ms": 120000,
"checkout_deviation_ms": -120000,
"time_entries": [
{
"uuid": "e4a1c8d2-5b6f-4f3a-9d07-8c2b1e6a3f45",
"start_ts": "2026-12-07T05:02:00.000Z",
"end_ts": "2026-12-07T12:58:00.000Z",
"invalid_reason": null
}
]
},
{
"account_id": 42,
"account_name": "Max Mustermann",
"planned": true,
"status": "present",
"checkin_ts": "2026-12-07T05:04:00.000Z",
"checkout_ts": null,
"checkin_timing": "on_time",
"checkout_timing": null,
"checkin_deviation_ms": 240000,
"checkout_deviation_ms": null,
"time_entries": [
{
"uuid": "a97f3e10-4c2d-4b8e-8f61-0d5c7b9e2a13",
"start_ts": "2026-12-07T05:04:00.000Z",
"end_ts": null,
"invalid_reason": null
}
]
}
]
}
],
"total": 1,
"page": 1,
"pageSize": 50
}
GET /v1/shifts/{id}
Get a shift.
Read, update or cancel a shift (status cancelled — never hard-deleted; shifts with check-ins cannot be edited). required_qualifications replaces the whole demand (null/[] clears it) and must fit the effective staffing target — even when only one of the two fields is in the patch.
Scope: shifts:read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string (uuid) | yes | — |
Example call
curl "https://api.litelog.de/api/v1/shifts/3f6b2c1e-8a4d-4e7b-9c15-2d7a6e0b4f31" \
-H "X-Api-Key: $KEY"
Example response (200)
{
"data": {
"uuid": "3f6b2c1e-8a4d-4e7b-9c15-2d7a6e0b4f31",
"series_id": 9141,
"property_id": 123,
"name": "Frühdienst Reinigung",
"status": "scheduled",
"start_ts": "2026-12-07T05:00:00.000Z",
"end_ts": "2026-12-07T13:00:00.000Z",
"checkin_start_ts": "2026-12-07T05:00:00.000Z",
"checkin_end_ts": "2026-12-07T13:00:00.000Z",
"checkout_start_ts": "2026-12-07T05:00:00.000Z",
"checkout_end_ts": "2026-12-07T13:00:00.000Z",
"checkins_count": 0,
"checkouts_count": 0,
"checkin_requirement_mode": null,
"checkout_requirement_mode": null,
"required_checkins": null,
"required_checkouts": null,
"required_headcount": 2,
"required_qualifications": null,
"effective_required_headcount": null,
"assignees": [
{
"account_id": 41,
"name": "Erika Musterfrau"
},
{
"account_id": 42,
"name": "Max Mustermann"
}
],
"created_at": "2026-12-01T08:15:00.000Z",
"updated_at": "2026-12-01T08:15:00.000Z"
}
}
PATCH /v1/shifts/{id}
Update a shift instance.
Read, update or cancel a shift (status cancelled — never hard-deleted; shifts with check-ins cannot be edited). required_qualifications replaces the whole demand (null/[] clears it) and must fit the effective staffing target — even when only one of the two fields is in the patch.
Scope: shifts:write
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string (uuid) | yes | — |
Body fields (JSON)
The example shows the structure of the body.
Example call
curl -X PATCH "https://api.litelog.de/api/v1/shifts/3f6b2c1e-8a4d-4e7b-9c15-2d7a6e0b4f31" \
-H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
-d '{
"start_ts": "2026-12-07T06:00:00Z",
"end_ts": "2026-12-07T14:00:00Z",
"name": "Frühdienst Reinigung (ab 7 Uhr)"
}'
Example response (200)
{
"data": {
"uuid": "3f6b2c1e-8a4d-4e7b-9c15-2d7a6e0b4f31",
"series_id": 9141,
"property_id": 123,
"name": "Frühdienst Reinigung (ab 7 Uhr)",
"status": "scheduled",
"start_ts": "2026-12-07T06:00:00.000Z",
"end_ts": "2026-12-07T14:00:00.000Z",
"checkin_start_ts": "2026-12-07T06:00:00.000Z",
"checkin_end_ts": "2026-12-07T14:00:00.000Z",
"checkout_start_ts": "2026-12-07T06:00:00.000Z",
"checkout_end_ts": "2026-12-07T14:00:00.000Z",
"checkins_count": 0,
"checkouts_count": 0,
"checkin_requirement_mode": null,
"checkout_requirement_mode": null,
"required_checkins": null,
"required_checkouts": null,
"required_headcount": 2,
"required_qualifications": null,
"effective_required_headcount": null,
"assignees": [
{
"account_id": 41,
"name": "Erika Musterfrau"
},
{
"account_id": 42,
"name": "Max Mustermann"
}
],
"created_at": "2026-12-01T08:15:00.000Z",
"updated_at": "2026-12-01T08:15:00.000Z"
}
}
DELETE /v1/shifts/{id}
Cancel a shift (status → cancelled).
Read, update or cancel a shift (status cancelled — never hard-deleted; shifts with check-ins cannot be edited). required_qualifications replaces the whole demand (null/[] clears it) and must fit the effective staffing target — even when only one of the two fields is in the patch.
Scope: shifts:write
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string (uuid) | yes | — |
Example call
curl -X DELETE "https://api.litelog.de/api/v1/shifts/3f6b2c1e-8a4d-4e7b-9c15-2d7a6e0b4f31" \
-H "X-Api-Key: $KEY"
Example response (200)
{
"data": {
"cancelled": true
}
}
GET /v1/shifts/{id}/replacements
Who can take over a shift (limit, up to 20): available people ranked by fit, with working-time warnings — never the reason someone is unavailable. Per candidate missing_qualification_ids names the open qualifications of the shift the person does not hold; only_qualified=true keeps only suitable people (the rest counts in excluded_counts.unqualified). Needs the package with planner automation and the right to see other people's times.
Scope: shifts:read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string (uuid) | yes | — |
limit |
query | integer | no | Default: 10; 1 – 20. |
only_qualified |
query | string | no | true = only people who cover an open qualification slot of the shift (everyone when none is open). Values: true, false. |
Example call
curl "https://api.litelog.de/api/v1/shifts/b81d5f02-63c7-4a9e-8e2f-1c4d9a7b3e60/replacements?limit=5" \
-H "X-Api-Key: $KEY"
Example response (200)
{
"data": {
"shift": {
"uuid": "b81d5f02-63c7-4a9e-8e2f-1c4d9a7b3e60",
"property_id": 123,
"start_ts": "2026-12-08T05:00:00.000Z",
"end_ts": "2026-12-08T09:00:00.000Z",
"required_headcount": 1,
"assigned_count": 0,
"open_count": 1,
"past": false,
"inherent_warnings": []
},
"candidates": [
{
"account_id": 42,
"name": "Max Mustermann",
"works_at_property": true,
"planned_week_hours": 8,
"time_balance_hours": null,
"has_required_qualification": true,
"missing_qualification_ids": [],
"warnings": [],
"prefers_shift_time": false
}
],
"excluded_counts": {
"pool": 2,
"already_on_shift": 0,
"unavailable": 1,
"unqualified": 0
}
}
}
GET /v1/shifts/{id}/attendance
Actual attendance on the shift (who was there, with timing verdicts).
Scope: shifts:read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string (uuid) | yes | — |
Example call
curl "https://api.litelog.de/api/v1/shifts/3f6b2c1e-8a4d-4e7b-9c15-2d7a6e0b4f31/attendance" \
-H "X-Api-Key: $KEY"
Example response (200)
{
"data": [
{
"account_id": 41,
"account_name": "Erika Musterfrau",
"checkin_ts": "2026-12-07T05:02:00.000Z",
"checkout_ts": "2026-12-07T12:58:00.000Z",
"checkin_timing": "on_time",
"checkout_timing": "on_time"
},
{
"account_id": 42,
"account_name": "Max Mustermann",
"checkin_ts": "2026-12-07T05:04:00.000Z",
"checkout_ts": null,
"checkin_timing": "on_time",
"checkout_timing": null
}
]
}
POST /v1/shifts/{id}/checkins
Check employees into the shift — live or retroactively (start_ts + end_ts); durations and minimum pause are server-computed.
Scope: shifts:write
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string (uuid) | yes | — |
Body fields (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
account_ids |
array (integer) | yes | At most 100 items. |
start_ts |
string (date-time) | no | — |
end_ts |
string (date-time) | no | — |
Example call
curl -X POST "https://api.litelog.de/api/v1/shifts/3f6b2c1e-8a4d-4e7b-9c15-2d7a6e0b4f31/checkins" \
-H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
-d '{
"account_ids": [
41,
42
]
}'
Example response (201)
{
"data": {
"checked_in": 2,
"rejected_account_ids": []
}
}
