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

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.

Parámetros de consulta

NombreTipoDescripción
userIdstring
startDateobligatoriostring
endDateobligatoriostring
halfDayStartstring
halfDayEndstring
leaveTypestring

Ejemplo

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();

Códigos de respuesta

HTTP Significado
200 Default Response

Búsqueda