Update an existing appointment with full validation
1234512"2026-03-15""10:30""Control mensual de diabetes - Revisión de glucosa"Pendiente - Scheduled and waitingAtendido - Patient was seen and appointment completedCancelado - Appointment was cancelledAusente - Patient did not show up"Atendido"checkPatientAvailability)"El paciente ya tiene un turno el {date} a las {time}"
checkAppointmentAvailability)"El profesional ya tiene un turno ocupado el {date} a las {time}"
checkProfessionalSchedule)"El profesional no trabaja en la fecha seleccionada.""El horario {time} está fuera de la jornada laboral ({startTime} a {endTime})""Formato de fecha u hora inválido"200 OK
Pendiente (Pending)
Cancelado (Cancelled)
| Feature | Create | Update |
|---|---|---|
| State field | Not required (defaults to “Pendiente”) | Required |
| Conflict check | Checks all appointments | Excludes current appointment |
| Status code | 201 Created | 200 OK |
| ID validation | Not needed | Validates ID exists and is numeric |