API · v1 · stabil
CODEMETA OSDeveloper Center
Konsole öffnen

POST /v1/vacation-requests/{id}/approve

POST/v1/vacation-requests/{id}/approve

Approve a vacation request. For account-based leave types (TIME_IN_LIEU, OVERTIME_COMPENSATION, LONG_TERM_WITHDRAWAL) the matching time account is debited atomically and the transaction id stored on the request.

Datenmodell

Diese Operation arbeitet auf der Entität Vacation Request (vacation_request). Alle 17 Felder — Typ, Validierung, Pflichtangabe, Beziehungen — stehen in der Schema-Referenz.

Request Body

NameTypBeschreibung
approverCommentstring
skipBalanceCheckbooleanManager override: bypass minBalanceMinutes check. Requires arbzg_violation_override or time_account_correct permission.

Pfad-Parameter

NameTypBeschreibung
iderforderlichstring

Beispiel

curl -X POST https://api.codemeta-os.de/v1/vacation-requests/{id}/approve \
  -H "X-Tenant-Id: $TENANT" \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{
  "approverComment": "string",
  "skipBalanceCheck": false
}'
const result = await cm.vacation-requests.post({
  "approverComment": "string",
  "skipBalanceCheck": false
});

Antwortcodes

HTTP Bedeutung
200 Default Response

Suche