Cancel vacation request
Cancels an existing vacation request.
When can vacations be canceled:
- Pending vacation requests (awaiting approval)
- Future approved vacations (not yet started)
Note: This endpoint is only available for employee accounts. Past vacations or vacations that have already started cannot be canceled.
DELETE
/account/employee/vacations/{id}Authorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idstringrequiredResponses
200
successbooleanrequiredOperation success flag
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
404Vacation not found or cannot be canceled
Request
curl -X DELETE "https://leadtime.app/api/public/account/employee/vacations/string" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/account/employee/vacations/string", {
method: "DELETE",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.delete(
"https://leadtime.app/api/public/account/employee/vacations/string",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)Response
{
"success": true
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions
Vacation not found or cannot be canceled