Update vacation request
Updates an existing vacation request. Only pending vacation requests can be updated.
What can be updated:
- Start date
- End date
Validation rules:
- Start date cannot be more than one month in the past
- End date must be after start date
- System checks for overlapping events
Note: This endpoint is only available for employee accounts. Once a vacation is approved or rejected, it cannot be updated. To cancel an approved vacation, use DELETE /api/public/account/employee/vacations/.
PUT
/account/employee/vacations/{id}Authorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idstringrequiredRequest body
requiredapplication/jsondateFromstringrequiredVacation start date
dateTostringrequiredVacation end date
Responses
200
successbooleanrequiredOperation success flag
400
Validation errors
errorsobjectShow propertiesHide properties
dateFromstring[]dateTostring[]globalErrorsstring[]messagestringstatusCodenumber401
Unauthorized - Invalid or missing authentication token
403
Forbidden - Insufficient API scopes or permissions