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

Vacation Request Schema

ID du schéma
vacation_request
Collection
vacation_requests
Autorisations
  • Lirevacation_request_view
  • Créervacation_request_create
  • Modifiervacation_request_edit
  • Supprimervacation_request_delete

Champs

Vacation Request Schema

vacation_requests4 autorisations

Schema for validating vacation request entities (Abwesenheitsanträge)

employeeIduuidfacultatif

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).

requesterIduuidfacultatif

User UUID des Antragstellers — denormalisiert für Self-Service-Reads. Null bei HR-erfassten Anträgen für Mitarbeitende ohne Login-Account.

nullable
approverIduuidfacultatif

User UUID of the designated approver

nullable
substituteIduuidfacultatif

User UUID of the substitute during leave (Vertretung)

nullable
startDatedateobligatoire

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

endDatedateobligatoire

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

daysRequestednumberobligatoire

Number of working days requested (0.5 for half-day)

≥ 0.5
halfDayStartbooleanfacultatif

Whether the first day is a half day (afternoon only)

Par défaut : false
halfDayEndbooleanfacultatif

Whether the last day is a half day (morning only)

Par défaut : false
leaveTypestringobligatoire

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_LEAVE
specialLeaveReasonstringfacultatif

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_BIRTHRELOCATIONJUBILEEOTHER
nullable
accountTransactionIduuidfacultatif

UUID der time_account_transaction, die bei Genehmigung des Freizeitausgleichs gebucht wurde. Nur bei leaveType ∈ {TIME_IN_LIEU, OVERTIME_COMPENSATION, LONG_TERM_WITHDRAWAL}.

lecture seulenullable
statusstringfacultatif

Current request status

PENDINGAPPROVEDREJECTEDWITHDRAWN
Par défaut : "PENDING"
reasonstringfacultatif

Reason for the leave request

max. 1000 caractèresnullable
approverCommentstringfacultatif

Approver comment on approval or rejection

max. 1000 caractèresnullable
eventIduuidfacultatif

UUID of the CalendarEvent created on approval

lecture seulenullable
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/vacation_requests — Liste, paginée et filtrable
  • GET /api/v1/vacation_requests/<id> — Une entité
  • POST /api/v1/vacation_requests — Créer
  • PATCH /api/v1/vacation_requests/<id> — Mise à jour partielle
  • DELETE /api/v1/vacation_requests/<id> — Suppression logique
  • GET /api/v1/vacation_requests/<id>/timeline — Audit et activités

Recherche