Server-side APIEndpointsAppointments

Reschedule an appointment

Move an appointment to a new time, or into a token session, with the same practitioner.

Moves an appointment to a new time, with the same practitioner at the same location. Medos updates the calendar and tells the patient, as it does when the front desk reschedules.

API-key only, gated on devapi_appointments_reschedule. X-Acting-User-Id is optional.

Parameters

Path parameters

appointmentRefstringrequiredExample: SCHEDULED:91234

SCHEDULED:<id>. A bare number means the same.

Query parameters

addressIdintegerrequiredExample: 1

The appointment's location.

doctorIdstringrequiredExample: MDU_A1B2C3D4E5F6

The appointment's own practitioner, as an MDU_… id. It does not change.

Headers

x-api-keystringrequiredExample: mk_…

Your Developer API key. Server-side only.

X-Acting-User-IdstringExample: MDU_A1B2C3D4E5F6

The staff member the call is attributed to, as an MDU_… id. Omit it to attribute the call to the workspace admin.

Content-TypestringrequiredExample: application/json

The body is JSON. Anything else is a 415.

Body

fromDateTimeIsostringExample: 2026-11-21T11:00:00+05:30

The new slot's start, from the practitioner's slots. Required unless you move it into a session with sessionId and date.

toDateTimeIsostringExample: 2026-11-21T11:30:00+05:30

The new slot's end.

sessionIdstringExample: 31

To move the visit into a session as a new token: a sessions[].sessionId. Send with date, and without the two times.

datedateExample: 2026-11-21

With sessionId only: the session's day, YYYY-MM-DD.

  • addressId and doctorId are required and are the appointment's own: its location.id and practitioner.id from GET /v1/appointments/{appointmentRef}. The practitioner does not change. Moving a visit to another practitioner is not part of the Developer API.
  • Pick the new time from the practitioner's slots, exactly as GET /v1/doctors/{doctorId}/slots returns it, as you would to book.
  • Or move it into a token session: send a session's sessionId and the date instead of the two times. The visit takes a new token there, at the end of that session's queue.
  • Only SCHEDULED, CONFIRMED and OVERDUE appointments can move. Any other is a 404, the same answer as an appointment that is not this clinic's.
  • PUT, not POST. A POST to this path is a 405 with Allow: PUT.

Responses

The 200 body is the appointment at its new time, in the same shape as the appointment read.

Test request