Entity · attendance_shift_corrections
Attendance Shift Correction Schema
Felder
Attendance Shift Correction Schema
Revisionssichere Korrektur eines attendance_shift (ADR 0036b Phase 5)
userId
Mitarbeiter, dessen Shift korrigiert wird
originalShiftId
Bei ADD = null; bei MODIFY/CANCEL = ID des Originals
read-onlynullable
correctionType
Werte
ADDMODIFYCANCELdate
Datum der korrigierten Shift (oder der Original-Shift bei CANCEL)
Pattern
startAt
nullable
endAt
nullable
durationMinutes
≥ 0nullable
activityType
Werte
WORKBREAKTRAVELON_CALL_ACTIVATIONSTANDBYnullable
travelDetails
nullable
fromLocation
max 500 Zeichen
toLocation
max 500 Zeichen
mode
Werte
CARTRAINFLIGHTOTHERdistanceKm
≥ 0nullable
customerRef
max 64 Zeichennullable
countAsWorkPercent
0 – 100Default: 100
reason
Pflicht-Begründung (mind. 20 Zeichen) — Audit-relevant
20–4000 Zeichen
requestedBy
userId des Antragstellers (MA oder HR)
max 64 Zeichen
requestedAt
nullable
approvedBy
userId des Genehmigers. Service erzwingt != requestedBy (4-Augen).
max 64 Zeichenread-onlynullable
approvedAt
read-onlynullable
status
Werte
PENDINGAPPROVEDREJECTEDDefault: "PENDING"
rejectionReason
max 4000 Zeichennullable
legalBasis
z.B. "§ 16 Abs. 2 ArbZG" — Dokumentation, welche Norm die Korrektur zulässt
max 200 Zeichennullable
previousHash
Patternread-onlynullable
entryHash
Patternread-onlynullable
Keine Felder passen zum Filter.
Standard-Endpoints
Diese Resource folgt dem generischen CRUD-Vertrag der Plattform. Lesen Sie die Konventionen für Pagination, Idempotenz, Optimistic Locking und Audit. Die wichtigsten Endpoints:
GET /api/v1/attendance_shift_corrections— Liste, paginiert + filterbarGET /api/v1/attendance_shift_corrections/<id>— Einzelne EntityPOST /api/v1/attendance_shift_corrections— AnlegenPATCH /api/v1/attendance_shift_corrections/<id>— Teil-UpdateDELETE /api/v1/attendance_shift_corrections/<id>— Soft-DeleteGET /api/v1/attendance_shift_corrections/<id>/timeline— Audit + Aktivitäten