---
title: "Set Weekly Availability"
method: PUT
path: "/api/doctor/availability/weekly"
---

# Set Weekly Availability

`PUT /api/doctor/availability/weekly`

## Request

- Base URL: `https://api.mednode.in` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mednode.in/api/doctor/availability/weekly`
- Auth: HTTP bearer

## Request body

- WeeklyAvailabilitySet: Set the entire day's range for a day-of-week. Replaces any existing slots for that day.
  - `day_of_week` integer, required
  - `start_time` string, required
  - `end_time` string, required
  - `slot_duration` integer

## Response `200`

Successful Response

- WeeklyDaySummary[]
  - `day_of_week` integer, required
  - `start_time` string, required
  - `end_time` string, required
  - `slot_duration` integer, required
  - `slot_count` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mednode/apis/mednode-ai-api.md) · [All operations](https://skmtc.dev/mednode/apis/mednode-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mednode/apis/mednode-ai-api/revisions/7e0b84effd6e?raw)
