Cancels an existing appointment. The server deletes the record only when the booking ID and the authenticated user’s ID both match — preventing patients from cancelling each other’s appointments. After a successful cancellation, Clinica sends a confirmation email to the patient asynchronously.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/bentlyy/Clinica/llms.txt
Use this file to discover all available pages before exploring further.
Request
DELETE /api/bookings/:id — requires the patient JWT that created the booking.
Headers
Bearer token. Format:
Bearer <token>Path parameters
ID of the booking to cancel.
Response
Confirmation string. Value:
"Booking cancelled successfully"Errors
| Status | Cause |
|---|---|
400 | Booking not found, or the booking belongs to a different user. |