API · v1 · stabil
CODEMETA OSDeveloper Center
Konsole öffnen

GET /v1/vacation-preview

GET/v1/vacation-preview

Computes daysRequested + minutesRequested + perDay breakdown for a prospective vacation. Mirrors the backend approval-time logic so the frontend can display the authoritative value. No mutation.

Query-Parameter

NameTypBeschreibung
userIdstring
startDateerforderlichstring
endDateerforderlichstring
halfDayStartstring
halfDayEndstring
leaveTypestring

Beispiel

curl -X GET https://api.codemeta-os.de/v1/vacation-preview \
  -H "X-Tenant-Id: $TENANT" \
  -b cookies.txt
const result = await cm.vacation-preview.list();

Antwortcodes

HTTP Bedeutung
200 Default Response

Suche