forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB0069847Burak Boduroğlu2 months ago552 commits

patchCancelAppointment.ts11 lines, 407 bytesHistoryRawDownload
1import { client } from "../client";
2import type { Appointment } from "../client";
3
4export type CancelAppointmentBody = {
5 /** Optional free-text reason; blank/omitted records no reason. */
6 reason?: string;
7};
8
9export function patchCancelAppointment(id: string, body?: CancelAppointmentBody): Promise<Appointment> {
10 return client<Appointment>(`/appointments/${id}/cancel`, { method: "PATCH", body });
11}