curl --request PUT \
--url https://api.example.com/api/appointments/:id \
--header 'Content-Type: application/json' \
--data '
{
"date": "<string>",
"time": "<string>",
"duration_minutes": 123,
"status": "<string>",
"reason": "<string>",
"notes": "<string>",
"diagnosis": "<string>",
"prescription": "<string>",
"follow_up_required": true,
"follow_up_date": "<string>",
"cancellation_reason": "<string>",
"send_notification": true
}
'{
"id": "<string>",
"patient_id": "<string>",
"patient_name": "<string>",
"doctor_id": "<string>",
"doctor_name": "<string>",
"specialty": "<string>",
"date": "<string>",
"time": "<string>",
"duration_minutes": 123,
"status": "<string>",
"reason": "<string>",
"notes": "<string>",
"diagnosis": "<string>",
"prescription": "<string>",
"follow_up_required": true,
"follow_up_date": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"completed_at": "<string>",
"cancelled_at": "<string>",
"cancellation_reason": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Update an existing appointment
curl --request PUT \
--url https://api.example.com/api/appointments/:id \
--header 'Content-Type: application/json' \
--data '
{
"date": "<string>",
"time": "<string>",
"duration_minutes": 123,
"status": "<string>",
"reason": "<string>",
"notes": "<string>",
"diagnosis": "<string>",
"prescription": "<string>",
"follow_up_required": true,
"follow_up_date": "<string>",
"cancellation_reason": "<string>",
"send_notification": true
}
'{
"id": "<string>",
"patient_id": "<string>",
"patient_name": "<string>",
"doctor_id": "<string>",
"doctor_name": "<string>",
"specialty": "<string>",
"date": "<string>",
"time": "<string>",
"duration_minutes": 123,
"status": "<string>",
"reason": "<string>",
"notes": "<string>",
"diagnosis": "<string>",
"prescription": "<string>",
"follow_up_required": true,
"follow_up_date": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"completed_at": "<string>",
"cancelled_at": "<string>",
"cancellation_reason": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Update the details of an existing appointment. You can modify the date, time, status, notes, and other appointment information.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/DUVAN100/saludya-api/llms.txt
Use this file to discover all available pages before exploring further.
scheduled, confirmed, in_progress, completed, cancelled, no_showcompleted)cancelled)curl -X PUT "https://api.saludya.com/api/appointments/apt_7k3m9n2p4q" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"date": "2026-03-12",
"time": "10:00",
"notes": "Paciente solicitó cambio de horario",
"send_notification": true
}'
curl -X PUT "https://api.saludya.com/api/appointments/apt_7k3m9n2p4q" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"status": "completed",
"diagnosis": "Hipertensión arterial controlada",
"prescription": "Continuar con Enalapril 10mg una vez al día. Control en 3 meses.",
"follow_up_required": true,
"follow_up_date": "2026-06-10",
"send_notification": false
}'
curl -X PUT "https://api.saludya.com/api/appointments/apt_7k3m9n2p4q" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"status": "cancelled",
"cancellation_reason": "Paciente tuvo una emergencia familiar",
"send_notification": true
}'
{
"id": "apt_7k3m9n2p4q",
"patient_id": "pat_5x8y2z4a6b",
"patient_name": "María González",
"doctor_id": "doc_3j5k7m9n1p",
"doctor_name": "Dr. Carlos Ramírez",
"specialty": "Cardiología",
"date": "2026-03-12",
"time": "10:00",
"duration_minutes": 30,
"status": "scheduled",
"reason": "Consulta de control cardiovascular",
"notes": "Paciente solicitó cambio de horario",
"diagnosis": null,
"prescription": null,
"follow_up_required": false,
"follow_up_date": null,
"created_at": "2026-03-05T14:22:10Z",
"updated_at": "2026-03-06T11:45:30Z",
"completed_at": null,
"cancelled_at": null,
"cancellation_reason": null
}
{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request data",
"details": {
"status": "Cannot change status to 'completed' without providing diagnosis"
}
}
}
{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing API token"
}
}
{
"error": {
"code": "FORBIDDEN",
"message": "You don't have permission to modify this appointment"
}
}
{
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Appointment with ID 'apt_7k3m9n2p4q' not found"
}
}
{
"error": {
"code": "APPOINTMENT_CONFLICT",
"message": "Doctor is not available at the requested time",
"details": {
"conflicting_appointment_id": "apt_8m4n1p5r7s",
"suggested_times": ["10:30", "11:00", "11:30"]
}
}
}
{
"error": {
"code": "INVALID_STATE_TRANSITION",
"message": "Cannot update a completed appointment. Contact support if you need to make changes."
}
}