API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la 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.

Modèle de données

Cette opération porte sur l'entité Vacation Request (vacation_request). Les 17 champs (type, validation, caractère obligatoire, relations) figurent dans la référence du schéma.

Corps de la requête

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

Paramètres de chemin

NomTypeDescription
idobligatoirestring

Exemple

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

Codes de réponse

HTTP Signification
200 Default Response

Recherche