API · v1 · stabil
CODEMETA OSDeveloper Center
Konsole öffnen
Entity · sick_leaves

Sick Leave Schema

Schema-ID
sick_leave
Collection
sick_leaves
Permissions
  • Lesensick_leave_view
  • Anlegensick_leave_create
  • Ändernsick_leave_edit
  • Löschensick_leave_delete

Felder

Sick Leave Schema

sick_leaves4 Permissions

Schema for validating sick leave entities (Krankmeldungen)

employeeIduuiderforderlich

UUID of the employee profile (ADR 0123 — kanonisch)

userIduuidoptional

User UUID des erkrankten Mitarbeitenden — denormalisiert. Null bei Mitarbeitenden ohne Login-Account (HR erfasst dann manuell).

nullable
startDatedateerforderlich

First day of sick leave (ISO 8601 date: YYYY-MM-DD)

endDatedateoptional

Last day of sick leave (null = open-ended)

nullable
statusstringoptional

Current sick leave status

REPORTEDCERTIFICATE_RECEIVEDEAU_CONFIRMEDCLOSED
Default: "REPORTED"
typestringerforderlich

Type of sick leave

ILLNESSCHILD_SICKWORK_ACCIDENTREHABILITATION
certificateFileIduuidoptional

UUID of the uploaded AU certificate file

nullable
eauReferencestringoptional

Reference from electronic AU system (eAU)

max 100 Zeichennullable
reportedAtdatetimeoptional

When the sick leave was reported

reportedByuuidoptional

User UUID of the person who reported the sick leave (self or manager)

workingDaysLostnumberoptional

Calculated number of working days lost

≥ 0nullable
eventIduuidoptional

UUID of the calendar event created for this sick leave

nullable
notesstringoptional

Additional notes

max 2000 Zeichennullable
autoReassignProcessedAtdatetimeoptional

When sick-leave auto-reassign of open tickets was processed

nullable
autoReassignedTicketCountintegeroptional

How many tickets were auto-reassigned from the sick employee

≥ 0nullable
externalReferencesobject[]optional

Cross-System-Verknüpfungen (ADR 0147 §3). Pro Fremdsystem ein Eintrag mit stabiler externer Id und den beiden Echo-Hashes. Wird ausschließlich von Sync-Pfaden geschrieben, nie über die generische CRUD-Oberfläche.

Default: []read-only
systemstringerforderlich
max 100 Zeichen
externalIdstringerforderlich
max 200 Zeichen
externalVersionstringoptional
nullable
externalNumberstringoptional
max 200 Zeichennullable
syncedAtdatetimeoptional
nullable
lastSyncCorrelationIdstringoptional
nullable
lastInboundHashstringoptional
max 64 Zeichennullable
lastOutboundHashstringoptional
max 64 Zeichennullable

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/sick_leaves — Liste, paginiert + filterbar
  • GET /api/v1/sick_leaves/<id> — Einzelne Entity
  • POST /api/v1/sick_leaves — Anlegen
  • PATCH /api/v1/sick_leaves/<id> — Teil-Update
  • DELETE /api/v1/sick_leaves/<id> — Soft-Delete
  • GET /api/v1/sick_leaves/<id>/timeline — Audit + Aktivitäten

Suche