API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console

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

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

Reject a pending vacation request with an optional comment.

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

Path parameters

NameTypeDescription
idrequiredstring

Example

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

Response codes

HTTP Meaning
200 Default Response

Search