---
title: "Create availability block"
method: POST
path: "/availability_blocks"
tags: ["Availability Block"]
---

# Create availability block

`POST /availability_blocks`

## Request body

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

## Response `201`

Resource was created

- AvailabilityBlock
  - `business` object
    - `links` object
      - `self` string, uri
  - `created_at` string, date-time
  - `ends_at` string, date-time
  - `id` string, int64
  - `links` object
    - `self` string, uri
  - `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
  - `starts_at` string, date-time
  - `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/revisions/79f172e1968d/schema)
