API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console

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.

Data model

This operation works on the entity Vacation Request (vacation_request). All 17 fields — type, validation, required status, relationships — are listed in the schema reference.

Request body

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

Path parameters

NameTypeDescription
idrequiredstring

Example

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

Response codes

HTTP Meaning
200 Default Response

Search