Removes a single weekly availability block from a doctor’s schedule. The delete query matches on both the record ID and the authenticated doctor’s ID, so a doctor cannot accidentally or maliciously delete another doctor’s availability. Removing an availability block does not cancel existing bookings that fall within that window.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/availability/:id — requires a doctor JWT.
Headers
Bearer token for a doctor account. Format:
Bearer <token>Path parameters
ID of the availability record to delete.
Response
Confirmation string. Value:
"Availability deleted"Errors
| Status | Cause |
|---|---|
404 | Record not found, or it belongs to a different doctor. |