---
title: "Set a schedule as the caller's default"
method: POST
path: "/appointments/schedules/{schedule_id}/set-default"
tags: ["Appointments"]
---

# Set a schedule as the caller's default

`POST /appointments/schedules/{schedule_id}/set-default`

## Request

- Base URL: `https://be.graph8.com/api/v1`
- URL: `https://be.graph8.com/api/v1/appointments/schedules/{schedule_id}/set-default`
- Auth: HTTP bearer

Mark a schedule as the caller's default availability schedule.

Persists via ``repo.update_appointment_settings(default_schedule_id=...)``
which is identical to the in-app ``PATCH /me`` (profile router) path that
sets ``default_schedule_id``. The default schedule is used for slot
generation when an event type has no schedule attached (Layer 3 resolution).
Returns 404 when the schedule does not exist or belongs to another user.

## Path parameters

- `schedule_id` integer, required: Schedule integer ID.

## Headers

- `Authorization` string, nullable
- `X-Target-Org-Id` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/graph8/apis/graph8-developer-api.md) · [All operations](https://skmtc.dev/graph8/apis/graph8-developer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/graph8/apis/graph8-developer-api/revisions/89fc11143b70?raw)
