API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen

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.

Datamodel

Deze operatie werkt op de entiteit Vacation Request (vacation_request). Alle 17 velden — type, validatie, verplichte velden, relaties — staan in de schemareferentie.

Request body

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

Padparameters

NaamTypeBeschrijving
idvereiststring

Voorbeeld

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

Antwoordcodes

HTTP Betekenis
200 Default Response

Zoeken