API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola
Entidad · sick_leaves

Sick Leave Schema

ID del esquema
sick_leave
Colección
sick_leaves
Permisos
  • Leersick_leave_view
  • Crearsick_leave_create
  • Modificarsick_leave_edit
  • Eliminarsick_leave_delete

Campos

Sick Leave Schema

sick_leaves4 permisos

Schema for validating sick leave entities (Krankmeldungen)

employeeIduuidobligatorio

UUID of the employee profile (ADR 0123 — kanonisch)

userIduuidopcional

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

admite null
startDatedateobligatorio

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

endDatedateopcional

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

admite null
statusstringopcional

Current sick leave status

REPORTEDCERTIFICATE_RECEIVEDEAU_CONFIRMEDCLOSED
Valor por defecto: "REPORTED"
typestringobligatorio

Type of sick leave

ILLNESSCHILD_SICKWORK_ACCIDENTREHABILITATION
certificateFileIduuidopcional

UUID of the uploaded AU certificate file

admite null
eauReferencestringopcional

Reference from electronic AU system (eAU)

máx. 100 caracteresadmite null
reportedAtdatetimeopcional

When the sick leave was reported

reportedByuuidopcional

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

workingDaysLostnumberopcional

Calculated number of working days lost

≥ 0admite null
eventIduuidopcional

UUID of the calendar event created for this sick leave

solo lecturaadmite null
notesstringopcional

Additional notes

máx. 2000 caracteresadmite null
autoReassignProcessedAtdatetimeopcional

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

admite null
autoReassignedTicketCountintegeropcional

How many tickets were auto-reassigned from the sick employee

≥ 0admite null
externalReferencesobject[]opcional

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.

Valor por defecto: []solo lectura
systemstringobligatorio
máx. 100 caracteres
externalIdstringobligatorio
máx. 200 caracteres
externalVersionstringopcional
admite null
externalNumberstringopcional
máx. 200 caracteresadmite null
syncedAtdatetimeopcional
admite null
lastSyncCorrelationIdstringopcional
admite null
lastInboundHashstringopcional
máx. 64 caracteresadmite null
lastOutboundHashstringopcional
máx. 64 caracteresadmite null

Endpoints estándar

Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:

  • GET /api/v1/sick_leaves — Lista, paginada y filtrable
  • GET /api/v1/sick_leaves/<id> — Una entidad
  • POST /api/v1/sick_leaves — Crear
  • PATCH /api/v1/sick_leaves/<id> — Actualización parcial
  • DELETE /api/v1/sick_leaves/<id> — Eliminación lógica
  • GET /api/v1/sick_leaves/<id>/timeline — Auditoría y actividades

Búsqueda