Once an appointment exists, both clients and barbers use these endpoints to move it through its lifecycle. A barber accepts or rejects pending requests. Either party can cancel. The client who created the appointment can reschedule it while it is still modifiable. After a completed appointment, the client can leave a rating and review.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/JulietaEM/EdgeTimer/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
Accept an appointment
PATCH /citas/:id/aceptar
Moves a "pendiente" appointment to "confirmada". Only the assigned barber may call this endpoint.
Path parameter
The ID of the appointment to accept.
Body parameters
Must be
"barbero".The barber’s profile ID. Must match the barber assigned to the appointment.
Response
Returns the updatedCita object with estado set to "confirmada".
Reject an appointment
PATCH /citas/:id/rechazar
Moves a "pendiente" appointment to "rechazada". Only the assigned barber may call this endpoint.
Path parameter
The ID of the appointment to reject.
Body parameters
Must be
"barbero".The barber’s profile ID. Must match the barber assigned to the appointment.
Response
Returns the updatedCita object with estado set to "rechazada".
Cancel an appointment
PATCH /citas/:id/cancelar
Moves an appointment to "cancelada". Both clients and barbers can cancel. The requesting party identifies itself via role and profileId.
Path parameter
The ID of the appointment to cancel.
Body parameters
The role of the cancelling user:
"cliente" or "barbero".The profile ID of the cancelling user.
Response
Returns the updatedCita object with estado set to "cancelada".
Reschedule an appointment
PATCH /citas/:id/reprogramar
Updates the date and time of an existing appointment. Both clients and barbers can reschedule.
Rescheduling is only permitted when
puedeModificar is true on the appointment — meaning the appointment is at least one full day away. Attempting to reschedule a same-day appointment will be rejected.Path parameter
The ID of the appointment to reschedule.
Body parameters
The role of the requesting user:
"cliente" or "barbero".The profile ID of the requesting user.
New appointment date in
YYYY-MM-DD format.New start time in
HH:MM format.New end time in
HH:MM format. Must match horaInicio plus the total duration of the appointment’s procedures. The server validates this and returns a 400 error if the value does not match the calculated end time.Response
Returns the updatedCita object reflecting the new date and time.
Rate an appointment
POST /citas/:id/calificar
Submits a rating and optional review for a completed appointment. Only the client may call this endpoint, and only once the appointment estado is "realizada".
Path parameter
The ID of the completed appointment to rate.
Body parameters
The client’s profile ID. Must match the client on the appointment.
Numeric rating from
1 (lowest) to 5 (highest).Optional written review to accompany the rating.
Response
Returns the updatedCita object with the calificacion field populated.
Example response