Reschedule Appointment
Overview
This API is used to reschedule an appointment. Rescheduling does not update the existing appointment. Instead, a brand new appointment is created with the supplied start_time and end_time, while the previous appointment’s status is marked as RES (which represents rescheduled).
The newly created appointment carries a prev_aids field — an array containing the ids of the previous, rescheduled appointment(s). Each previous appointment in turn carries a next_aid field, which holds the id of the next appointment it was rescheduled to. This forms a linked chain across the reschedule history.
The response of this API is the new appointment that is created as a result of the reschedule.
Headers
Path Parameters
The id (aid) of the existing appointment to reschedule. When partner_appointment_id is supplied, this is treated as the partner appointment id.
Body
New start time of the appointment as a Unix epoch in seconds.
1730189586
New end time of the appointment as a Unix epoch in seconds. Must be after start_time.
1730193186
Optional partner-provided appointment id. When omitted, the server generates the new appointment id and the appointment_id path param is used as-is. When supplied, the new id is derived with the help of this field and the appointment_id path param is treated as a partner appointment id.
Response
OK — the newly created (rescheduled) appointment.
Id of the newly created appointment.
Start time as a Unix epoch in seconds.
End time as a Unix epoch in seconds.
Creation time as a Unix epoch in seconds.
Ids of the previous rescheduled appointment(s).
Id of the next appointment this one was rescheduled to. Present only on previous appointments.

