---
title: "List availability rules for a bookable area"
method: GET
path: "/shop/bookable-areas/{bookableAreaId}/availability-rules"
tags: ["BookableAreas"]
---

# List availability rules for a bookable area

`GET /shop/bookable-areas/{bookableAreaId}/availability-rules`

Returns all `AvailabilityRule`s configured on a `BookableArea`.
Availability rules carve up the calendar into windows when the
area can or cannot be booked — useful for blocking maintenance
slots or restricting cabana hours.

Any `is_available: false` rule overrides any `is_available: true`
rule for the same time period.

Requires the `SETTINGS_MANAGE` permission on the area's site.

## Response `200`

A list of `AvailabilityRule`s on a `BookableArea`.

- object
  - `data` AvailabilityRule[], required — The availability rules configured for this bookable area. Order is not guaranteed.
    - `id` string, object-id, required — The ID of the availability rule.
    - `date_from` string, date, required — The start of the rule period.
    - `date_to` string, date, required — The end of the rule period.
    - `is_available` boolean, required — Whether the resource is available during this period. Any `false` rules will override `true` rules.
    - `max_duration` integer — Maximum number of minutes.
    - `min_duration` integer — Minimum number of minutes.
    - `time_from` string, required — The daily start time of the time period, in 24 hour format.
    - `time_to` string, required — The daily end time of the time period, in 24 hour format.
    - `weekdays` string[] — The weekdays this rule applies to.

## Other responses

- `401` — The user is unauthenticated
- `403` — The authenticated user does not have permission.
- `404` — The resource couldn't be found

---

[API](https://skmtc.dev/try/apis/trybe-api.md) · [All operations](https://skmtc.dev/try/apis/trybe-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/try/trybe-api/revisions/f37f92702da5/schema)
