Skip to main content

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.

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.

Request

DELETE /api/availability/:id — requires a doctor JWT.

Headers

Authorization
string
required
Bearer token for a doctor account. Format: Bearer <token>

Path parameters

id
integer
required
ID of the availability record to delete.

Response

message
string
Confirmation string. Value: "Availability deleted"

Errors

StatusCause
404Record not found, or it belongs to a different doctor.
curl --request DELETE \
  --url https://your-clinica-host/api/availability/5 \
  --header 'Authorization: Bearer <doctor-token>'
{
  "message": "Availability deleted"
}

Build docs developers (and LLMs) love