API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · vacation_requests

Vacation Request Schema

Schema-ID
vacation_request
Collection
vacation_requests
Permissions
  • Lezenvacation_request_view
  • Aanmakenvacation_request_create
  • Wijzigenvacation_request_edit
  • Verwijderenvacation_request_delete

Velden

Vacation Request Schema

vacation_requests4 permissions

Schema for validating vacation request entities (Abwesenheitsanträge)

employeeIduuidoptioneel

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

requesterIduuidoptioneel

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

nullable
approverIduuidoptioneel

User UUID of the designated approver

nullable
substituteIduuidoptioneel

User UUID of the substitute during leave (Vertretung)

nullable
startDatedatevereist

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

endDatedatevereist

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

daysRequestednumbervereist

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

≥ 0.5
halfDayStartbooleanoptioneel

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

Default: false
halfDayEndbooleanoptioneel

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

Default: false
leaveTypestringvereist

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
specialLeaveReasonstringoptioneel

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
accountTransactionIduuidoptioneel

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

read-onlynullable
statusstringoptioneel

Current request status

PENDINGAPPROVEDREJECTEDWITHDRAWN
Default: "PENDING"
reasonstringoptioneel

Reason for the leave request

max. 1000 tekensnullable
approverCommentstringoptioneel

Approver comment on approval or rejection

max. 1000 tekensnullable
eventIduuidoptioneel

UUID of the CalendarEvent created on approval

read-onlynullable
externalReferencesobject[]optioneel

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.

Default: []read-only
systemstringvereist
max. 100 tekens
externalIdstringvereist
max. 200 tekens
externalVersionstringoptioneel
nullable
externalNumberstringoptioneel
max. 200 tekensnullable
syncedAtdatetimeoptioneel
nullable
lastSyncCorrelationIdstringoptioneel
nullable
lastInboundHashstringoptioneel
max. 64 tekensnullable
lastOutboundHashstringoptioneel
max. 64 tekensnullable

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/vacation_requests — Lijst, gepagineerd + filterbaar
  • GET /api/v1/vacation_requests/<id> — Enkele entity
  • POST /api/v1/vacation_requests — Aanmaken
  • PATCH /api/v1/vacation_requests/<id> — Gedeeltelijke update
  • DELETE /api/v1/vacation_requests/<id> — Soft-delete
  • GET /api/v1/vacation_requests/<id>/timeline — Audit + activiteiten

Zoeken