Skip to content
Leadtime
English
Esc
navigateopen⌘Jpreview

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 · headerrequired
Scopes:api:write
or
AuthorizationBearer token (JWT) · headerrequired
Path parameters
idstringrequired
Request body
requiredapplication/json
dateFromstringrequired
Vacation start date
dateTostringrequired
Vacation end date
Responses
200
successbooleanrequired
Operation success flag
400Validation errors
errorsobject
Show properties
dateFromstring[]
dateTostring[]
globalErrorsstring[]
messagestring
statusCodenumber
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X PUT "https://leadtime.app/api/public/account/employee/vacations/string" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "dateFrom": "2024-06-01T00:00:00.000Z",
  "dateTo": "2024-06-05T00:00:00.000Z"
}'
Response
{
  "success": true
}