A schedule (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/CKoldo/Vacaciones-front/llms.txt
Use this file to discover all available pages before exploring further.
CronogramaVacaciones) represents one vacation year for a single employee. It tracks the total days available, how many flexible and block days have been used, and the approval state. The actual vacation date ranges are stored separately and linked to the schedule — see Ranges.
Each employee gets exactly 30 total vacation days per period:
- Up to 7 flexible days — short ranges of 1–7 days
- 23 block days — continuous ranges of 7 or more days
All endpoints require a valid
Authorization: Bearer <token> header. See Authentication for details.List all schedules
Returns every schedule in the system across all employees.GET /api/schedules
No request body.
Response — CronogramaVacaciones[]
Unique identifier for the schedule.
ID of the employee this schedule belongs to.
Vacation year label (e.g.
"2026-2027").ISO 8601 date string for when the vacation period begins.
ISO 8601 date string for when the vacation period ends.
Total vacation days in the period. Always
30.Maximum flexible days available. Always
7.Flexible days already scheduled.
Block days available. Always
23.Block days already scheduled.
Days used as an advance (adelanto) against this period.
Vacation date ranges belonging to this schedule. May be an empty array if ranges have not been fetched separately.
Approval status:
"pendiente", "aprobado", or "rechazado".List schedules for an employee
Returns all schedules that belong to a specific employee. Use this when you need only the records for one person.GET /api/schedules/:personalId
The UUID of the employee whose schedules you want to retrieve.
CronogramaVacaciones[] filtered to the given employee. The response shape is identical to List all schedules.
Ranges are not embedded in this response. Fetch them separately with
GET /api/ranges/:scheduleId for each schedule returned.Create a schedule
Creates a new vacation schedule for an employee. Send all schedule fields exceptrangos — ranges are managed through the Ranges API.
POST /api/schedules
Client-generated UUID for the schedule.
ID of the employee this schedule belongs to.
Vacation year label (e.g.
"2026-2027").ISO 8601 start date of the vacation period.
ISO 8601 end date of the vacation period.
Total vacation days. Always
30.Maximum flexible days. Always
7.Flexible days already used. Set to
0 on creation.Block days available. Always
23.Block days already used. Set to
0 on creation.Advance days already deducted. Set to
0 on creation.Initial approval status. One of
"pendiente", "aprobado", "rechazado".CronogramaVacaciones object.
Update a schedule
Updates day counters and approval status on an existing schedule. This endpoint is called whenever a range is added, deleted, or rescheduled to keep the schedule’s counters in sync.PUT /api/schedules/:id
The UUID of the schedule to update.
Schedule ID (must match the path parameter).
ID of the employee.
Vacation year label.
ISO 8601 start date.
ISO 8601 end date.
Total vacation days.
Maximum flexible days available.
Updated flexible days used.
Block days available.
Updated block days used.
Updated advance days.
Approval status:
"pendiente", "aprobado", or "rechazado".CronogramaVacaciones object.
