Entity · attendance_shift_corrections
Attendance Shift Correction Schema
Velden
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
Waarden
ADDMODIFYCANCELdate
Datum der korrigierten Shift (oder der Original-Shift bei CANCEL)
Pattern
startAt
nullable
endAt
nullable
durationMinutes
≥ 0nullable
activityType
Waarden
WORKBREAKTRAVELON_CALL_ACTIVATIONSTANDBYnullable
travelDetails
nullable
fromLocation
max. 500 tekens
toLocation
max. 500 tekens
mode
Waarden
CARTRAINFLIGHTOTHERdistanceKm
≥ 0nullable
customerRef
max. 64 tekensnullable
countAsWorkPercent
0 – 100Default: 100
reason
Pflicht-Begründung (mind. 20 Zeichen) — Audit-relevant
20–4000 tekens
requestedBy
userId des Antragstellers (MA oder HR)
max. 64 tekens
requestedAt
nullable
approvedBy
userId des Genehmigers. Service erzwingt != requestedBy (4-Augen).
max. 64 tekensread-onlynullable
approvedAt
read-onlynullable
status
Waarden
PENDINGAPPROVEDREJECTEDDefault: "PENDING"
rejectionReason
max. 4000 tekensnullable
legalBasis
z.B. "§ 16 Abs. 2 ArbZG" — Dokumentation, welche Norm die Korrektur zulässt
max. 200 tekensnullable
previousHash
Patternread-onlynullable
entryHash
Patternread-onlynullable
Geen velden komen overeen met het filter.
Standaard-endpoints
Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:
GET /api/v1/attendance_shift_corrections— Lijst, gepagineerd + filterbaarGET /api/v1/attendance_shift_corrections/<id>— Enkele entityPOST /api/v1/attendance_shift_corrections— AanmakenPATCH /api/v1/attendance_shift_corrections/<id>— Gedeeltelijke updateDELETE /api/v1/attendance_shift_corrections/<id>— Soft-deleteGET /api/v1/attendance_shift_corrections/<id>/timeline— Audit + activiteiten