API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola
Entidad · vacation_requests

Vacation Request Schema

ID del esquema
vacation_request
Colección
vacation_requests
Permisos
  • Leervacation_request_view
  • Crearvacation_request_create
  • Modificarvacation_request_edit
  • Eliminarvacation_request_delete

Campos

Vacation Request Schema

vacation_requests4 permisos

Schema for validating vacation request entities (Abwesenheitsanträge)

employeeIduuidopcional

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

requesterIduuidopcional

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

admite null
approverIduuidopcional

User UUID of the designated approver

admite null
substituteIduuidopcional

User UUID of the substitute during leave (Vertretung)

admite null
startDatedateobligatorio

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

endDatedateobligatorio

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

daysRequestednumberobligatorio

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

≥ 0.5
halfDayStartbooleanopcional

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

Valor por defecto: false
halfDayEndbooleanopcional

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

Valor por defecto: false
leaveTypestringobligatorio

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
specialLeaveReasonstringopcional

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
admite null
accountTransactionIduuidopcional

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

solo lecturaadmite null
statusstringopcional

Current request status

PENDINGAPPROVEDREJECTEDWITHDRAWN
Valor por defecto: "PENDING"
reasonstringopcional

Reason for the leave request

máx. 1000 caracteresadmite null
approverCommentstringopcional

Approver comment on approval or rejection

máx. 1000 caracteresadmite null
eventIduuidopcional

UUID of the CalendarEvent created on approval

solo lecturaadmite null
externalReferencesobject[]opcional

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.

Valor por defecto: []solo lectura
systemstringobligatorio
máx. 100 caracteres
externalIdstringobligatorio
máx. 200 caracteres
externalVersionstringopcional
admite null
externalNumberstringopcional
máx. 200 caracteresadmite null
syncedAtdatetimeopcional
admite null
lastSyncCorrelationIdstringopcional
admite null
lastInboundHashstringopcional
máx. 64 caracteresadmite null
lastOutboundHashstringopcional
máx. 64 caracteresadmite null

Endpoints estándar

Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:

  • GET /api/v1/vacation_requests — Lista, paginada y filtrable
  • GET /api/v1/vacation_requests/<id> — Una entidad
  • POST /api/v1/vacation_requests — Crear
  • PATCH /api/v1/vacation_requests/<id> — Actualización parcial
  • DELETE /api/v1/vacation_requests/<id> — Eliminación lógica
  • GET /api/v1/vacation_requests/<id>/timeline — Auditoría y actividades

Búsqueda