Vacation Request Schema
Fields
Vacation Request Schema
Schema for validating vacation request entities (Abwesenheitsanträge)
employeeId
ADR 0123 — employee_profile._id der freistellungsbedürftigen Person. Kanonischer Schlüssel, funktioniert auch ohne verknüpften Login. Pflicht, aber serverseitig ableitbar — erzwungen im beforeCreate-Hook, nicht in `required` (siehe Kommentar dort).
requesterId
User UUID des Antragstellers — denormalisiert für Self-Service-Reads. Null bei HR-erfassten Anträgen für Mitarbeitende ohne Login-Account.
approverId
User UUID of the designated approver
substituteId
User UUID of the substitute during leave (Vertretung)
startDate
First day of leave (ISO 8601 date: YYYY-MM-DD)
endDate
Last day of leave (ISO 8601 date: YYYY-MM-DD)
daysRequested
Number of working days requested (0.5 for half-day)
halfDayStart
Whether the first day is a half day (afternoon only)
halfDayEnd
Whether the last day is a half day (morning only)
leaveType
Abwesenheitsart. Nur VACATION zieht vom Jahresurlaub ab. ADR 0036b: TIME_IN_LIEU (Gleitzeit, FLEX), OVERTIME_COMPENSATION (Überstunden, OVERTIME), LONG_TERM_WITHDRAWAL (Langzeitkonto). Gesetzliche Freistellungen: VOCATIONAL_SCHOOL, EDUCATION_LEAVE, QUARANTINE, PAID_RELEASE, CARE_LEAVE.
VACATIONSPECIAL_LEAVECOMPENSATORYUNPAIDOTHERTIME_IN_LIEUOVERTIME_COMPENSATIONLONG_TERM_WITHDRAWALVOCATIONAL_SCHOOLEDUCATION_LEAVEQUARANTINEPAID_RELEASECARE_LEAVEspecialLeaveReason
Anlass für SPECIAL_LEAVE: WEDDING (Hochzeit), BEREAVEMENT (Todesfall naher Angehöriger), CHILD_BIRTH (Geburt eigenes Kind), RELOCATION (Umzug), JUBILEE (Dienstjubiläum), OTHER (sonstiger Anlass).
nullWEDDINGBEREAVEMENTCHILD_BIRTHRELOCATIONJUBILEEOTHERaccountTransactionId
UUID der time_account_transaction, die bei Genehmigung des Freizeitausgleichs gebucht wurde. Nur bei leaveType ∈ {TIME_IN_LIEU, OVERTIME_COMPENSATION, LONG_TERM_WITHDRAWAL}.
status
Current request status
PENDINGAPPROVEDREJECTEDWITHDRAWNreason
Reason for the leave request
approverComment
Approver comment on approval or rejection
eventId
UUID of the CalendarEvent created on approval
externalReferences
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.
system
externalId
externalVersion
externalNumber
syncedAt
lastSyncCorrelationId
lastInboundHash
lastOutboundHash
No fields match the filter.
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/vacation_requests— List, paginated + filterableGET /api/v1/vacation_requests/<id>— Single entityPOST /api/v1/vacation_requests— CreatePATCH /api/v1/vacation_requests/<id>— Partial updateDELETE /api/v1/vacation_requests/<id>— Soft deleteGET /api/v1/vacation_requests/<id>/timeline— Audit + activities