---
title: "Change confirmation and reminder settings"
method: PATCH
path: "/api/projects/{id}/booking-settings"
tags: ["Bookings"]
---

# Change confirmation and reminder settings

`PATCH /api/projects/{id}/booking-settings`

## Request

- Base URL: `https://dosai.pro`
- URL: `https://dosai.pro/api/projects/{id}/booking-settings`
- Auth: HTTP bearer

Send the whole object. Turning `enabled` off withdraws every pending message of the project.

## Request body

- BookingSettings
  - `enabled` boolean, required
  - `confirmation` object, required
    - `enabled` boolean
    - `text` string: Empty = default text.
  - `reminders` object[], required
    - `offset_minutes` integer, required
    - `text` string: Empty = `template`.
  - `template` string, required: Common reminder text. Placeholders: {{client_name}}, {{service}}, {{date}}, {{time}}.

## Response `200`

Saved settings, wrapped in `data`.

- object
  - `data` BookingSettings, required
    - `enabled` boolean, required
    - `confirmation` object, required
      - `enabled` boolean
      - `text` string: Empty = default text.
    - `reminders` object[], required
      - `offset_minutes` integer, required
      - `text` string: Empty = `template`.
    - `template` string, required: Common reminder text. Placeholders: {{client_name}}, {{service}}, {{date}}, {{time}}.

## Other responses

- `400`: Validation failed.
- `401`: Missing, invalid, expired or revoked key.
- `403`: Not allowed. Distinguish by `code`: `INSUFFICIENT_SCOPE` (read-only key attempted a mutation), `API_KEY_PROJECT_SCOPE` (project-scoped key reached outside its project), `FORBIDDEN` (the user's role on this project is too low), `ACCOUNT_BANNED`.
- `404`: No such resource, or it belongs to another account.
- `429`: Too many requests. 120/min per key overall, plus a stricter per-endpoint budget. Retry after the number of seconds in Retry-After.

---

[API](https://skmtc.dev/dosai/apis/dos-ai-public-api.md) · [All operations](https://skmtc.dev/dosai/apis/dos-ai-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dosai/apis/dos-ai-public-api/revisions/38ce5f4e8f50?raw)
