Vacation Request Schema
Felder
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.
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
Keine Felder passen zum Filter.
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/vacation_requests— Liste, paginiert + filterbarGET /api/v1/vacation_requests/<id>— Einzelne EntityPOST /api/v1/vacation_requests— AnlegenPATCH /api/v1/vacation_requests/<id>— Teil-UpdateDELETE /api/v1/vacation_requests/<id>— Soft-DeleteGET /api/v1/vacation_requests/<id>/timeline— Audit + Aktivitäten