API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · sick_leaves

Sick Leave Schema

ID du schéma
sick_leave
Collection
sick_leaves
Autorisations
  • Liresick_leave_view
  • Créersick_leave_create
  • Modifiersick_leave_edit
  • Supprimersick_leave_delete

Champs

Sick Leave Schema

sick_leaves4 autorisations

Schema for validating sick leave entities (Krankmeldungen)

employeeIduuidobligatoire

UUID of the employee profile (ADR 0123 — kanonisch)

userIduuidfacultatif

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

nullable
startDatedateobligatoire

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

endDatedatefacultatif

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

nullable
statusstringfacultatif

Current sick leave status

REPORTEDCERTIFICATE_RECEIVEDEAU_CONFIRMEDCLOSED
Par défaut : "REPORTED"
typestringobligatoire

Type of sick leave

ILLNESSCHILD_SICKWORK_ACCIDENTREHABILITATION
certificateFileIduuidfacultatif

UUID of the uploaded AU certificate file

nullable
eauReferencestringfacultatif

Reference from electronic AU system (eAU)

max. 100 caractèresnullable
reportedAtdatetimefacultatif

When the sick leave was reported

reportedByuuidfacultatif

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

workingDaysLostnumberfacultatif

Calculated number of working days lost

≥ 0nullable
eventIduuidfacultatif

UUID of the calendar event created for this sick leave

lecture seulenullable
notesstringfacultatif

Additional notes

max. 2000 caractèresnullable
autoReassignProcessedAtdatetimefacultatif

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

nullable
autoReassignedTicketCountintegerfacultatif

How many tickets were auto-reassigned from the sick employee

≥ 0nullable
externalReferencesobject[]facultatif

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.

Par défaut : []lecture seule
systemstringobligatoire
max. 100 caractères
externalIdstringobligatoire
max. 200 caractères
externalVersionstringfacultatif
nullable
externalNumberstringfacultatif
max. 200 caractèresnullable
syncedAtdatetimefacultatif
nullable
lastSyncCorrelationIdstringfacultatif
nullable
lastInboundHashstringfacultatif
max. 64 caractèresnullable
lastOutboundHashstringfacultatif
max. 64 caractèresnullable

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/sick_leaves — Liste, paginée et filtrable
  • GET /api/v1/sick_leaves/<id> — Une entité
  • POST /api/v1/sick_leaves — Créer
  • PATCH /api/v1/sick_leaves/<id> — Mise à jour partielle
  • DELETE /api/v1/sick_leaves/<id> — Suppression logique
  • GET /api/v1/sick_leaves/<id>/timeline — Audit et activités

Recherche