---
title: "Update unavailable block"
method: PATCH
path: "/unavailable_blocks/{id}"
tags: ["Unavailable Block"]
---

# Update unavailable block

`PATCH /unavailable_blocks/{id}`

## Path parameters

- `id` string, int64, required

## Request body

- object
  - `business_id` string, int64 — business id
  - `ends_at` string, date-time
  - `notes` string, nullable
  - `practitioner_id` string, int64 — practitioner id
  - `starts_at` string, date-time
  - `unavailable_block_type_id` string, int64 — unavailable block type id
  - `repeat_rule` object, nullable
    - `number_of_repeats` integer, nullable
    - `repeat_type` 'Daily' | 'Monthly' | 'Weekly', nullable
    - `repeating_interval` integer, nullable

## Response `200`

Resource was updated

- UnavailableBlock
  - `archived_at` string, date-time, nullable
  - `business` object
    - `links` object
      - `self` string, uri
  - `conflicts` object, nullable
    - `links` object
      - `self` string, uri
  - `created_at` string, date-time
  - `deleted_at` string, date-time, nullable
  - `ends_at` string, date-time
  - `id` string, int64
  - `links` object
    - `self` string, uri
  - `notes` string, nullable
  - `practitioner` object
    - `links` object
      - `self` string, uri
  - `repeat_rule` object, nullable
    - `number_of_repeats` integer, nullable
    - `repeat_type` 'Daily' | 'Monthly' | 'Weekly', nullable
    - `repeating_interval` integer, nullable
  - `repeated_from` object
    - `links` object
      - `self` string, uri
  - `repeats` object, nullable
    - `links` object
      - `self` string, uri
  - `starts_at` string, date-time
  - `unavailable_block_type` object
    - `links` object
      - `self` string, uri
  - `updated_at` string, date-time

## Other responses

- `422` — Resource could not be saved due to validation errors

---

[API](https://skmtc.net/cliniko/apis/cliniko-api.md) · [All operations](https://skmtc.net/cliniko/apis/cliniko-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cliniko/cliniko-api/versions/c129a555ff44/schema)
