API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Entity · sick_leaves

Sick Leave Schema

Schema ID
sick_leave
Collection
sick_leaves
Permissions
  • Readsick_leave_view
  • Createsick_leave_create
  • Editsick_leave_edit
  • Deletesick_leave_delete

Fields

Sick Leave Schema

sick_leaves4 permissions

Schema for validating sick leave entities (Krankmeldungen)

employeeIduuidrequired

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
startDatedaterequired

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"
typestringrequired

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 charactersnullable
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

read-onlynullable
notesstringoptional

Additional notes

max 2000 charactersnullable
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
systemstringrequired
max 100 characters
externalIdstringrequired
max 200 characters
externalVersionstringoptional
nullable
externalNumberstringoptional
max 200 charactersnullable
syncedAtdatetimeoptional
nullable
lastSyncCorrelationIdstringoptional
nullable
lastInboundHashstringoptional
max 64 charactersnullable
lastOutboundHashstringoptional
max 64 charactersnullable

Standard endpoints

This resource follows the platform's generic CRUD contract. Read the conventions for pagination, idempotency, optimistic locking and audit. The most important endpoints:

  • GET /api/v1/sick_leaves — List, paginated + filterable
  • GET /api/v1/sick_leaves/<id> — Single entity
  • POST /api/v1/sick_leaves — Create
  • PATCH /api/v1/sick_leaves/<id> — Partial update
  • DELETE /api/v1/sick_leaves/<id> — Soft delete
  • GET /api/v1/sick_leaves/<id>/timeline — Audit + activities

Search