Skip to content
Leadtime
English
Esc
↑↓navigate↵open⌘Jpreview

Request vacation

Creates a new vacation request for the current employee.

How vacation requests work:

  1. Employee submits a vacation request with start and end dates
  2. Request status is set to “Pending”
  3. Manager reviews and approves or rejects the request
  4. System automatically checks for scheduling conflicts

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 (other vacations, sick days, etc.)

Note: This endpoint is only available for employee accounts. Only pending vacations can be modified or canceled.

POST/account/employee/vacations/request
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:write
or
AuthorizationBearer token (JWT) · headerrequired
Request body
requiredapplication/json
dateFromstring<date-time>required

Start date of vacation

dateTostring<date-time>required

End date of vacation

Responses
200
successbooleanrequired

Operation success flag

400

Validation errors

errorsobject
Show properties
dateFromstring[]
dateTostring[]
globalErrorsstring[]
messagestring
statusCodenumber
401

Unauthorized - Invalid or missing authentication token

403

Forbidden - Insufficient API scopes or permissions

Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST "https://leadtime.app/api/public/account/employee/vacations/request" \
  -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
}