Adds a recurring availability block to a doctor’s weekly schedule. The server rejects any window whereDocumentation 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.
start_time >= end_time or where the new window overlaps an existing block for the same doctor on the same day. Availability records are used by the booking engine to validate appointment requests and generate open slots.
Request
POST /api/availability — requires a doctor JWT.
Headers
Bearer token for a doctor account. Format:
Bearer <token>Body
Day of the week as an integer (0 = Sunday, 6 = Saturday). See table below.
Availability window start time in
HH:MM format.Availability window end time in
HH:MM format. Must be after start_time.Day of week reference
| Value | Day |
|---|---|
0 | Sunday |
1 | Monday |
2 | Tuesday |
3 | Wednesday |
4 | Thursday |
5 | Friday |
6 | Saturday |
Response
Returns the created availability record.Unique ID of the availability record.
ID of the doctor this record belongs to.
Day of the week (0–6).
Window start time (
HH:MM).Window end time (
HH:MM).