API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Entity · vacation_requests

Vacation Request Schema

Schema ID
vacation_request
Collection
vacation_requests
Permissions
  • Readvacation_request_view
  • Createvacation_request_create
  • Editvacation_request_edit
  • Deletevacation_request_delete

Fields

Vacation Request Schema

vacation_requests4 permissions

Schema for validating vacation request entities (Abwesenheitsanträge)

employeeIduuidoptional

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

requesterIduuidoptional

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

nullable
approverIduuidoptional

User UUID of the designated approver

nullable
substituteIduuidoptional

User UUID of the substitute during leave (Vertretung)

nullable
startDatedaterequired

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

endDatedaterequired

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

daysRequestednumberrequired

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

≥ 0.5
halfDayStartbooleanoptional

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

Default: false
halfDayEndbooleanoptional

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

Default: false
leaveTypestringrequired

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
specialLeaveReasonstringoptional

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
accountTransactionIduuidoptional

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
statusstringoptional

Current request status

PENDINGAPPROVEDREJECTEDWITHDRAWN
Default: "PENDING"
reasonstringoptional

Reason for the leave request

max 1000 charactersnullable
approverCommentstringoptional

Approver comment on approval or rejection

max 1000 charactersnullable
eventIduuidoptional

UUID of the CalendarEvent created on approval

read-onlynullable
externalReferencesobject[]optional

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
systemstringrequired
max 100 characters
externalIdstringrequired
max 200 characters
externalVersionstringoptional
nullable
externalNumberstringoptional
max 200 charactersnullable
syncedAtdatetimeoptional
nullable
lastSyncCorrelationIdstringoptional
nullable
lastInboundHashstringoptional
max 64 charactersnullable
lastOutboundHashstringoptional
max 64 charactersnullable

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 + filterable
  • GET /api/v1/vacation_requests/<id> — Single entity
  • POST /api/v1/vacation_requests — Create
  • PATCH /api/v1/vacation_requests/<id> — Partial update
  • DELETE /api/v1/vacation_requests/<id> — Soft delete
  • GET /api/v1/vacation_requests/<id>/timeline — Audit + activities

Search