---
title: "Create Membership Advanced Booking Rules"
method: POST
path: "/v1/organizations/settings/membership_advance_booking_rules"
---

# Create Membership Advanced Booking Rules

`POST /v1/organizations/settings/membership_advance_booking_rules`

This API Creates one or more membership advance booking rules for the organization. Each rule maps a membership to a specific class or amenity with a configured number of days in advance that the member can book. When multiple item_ids are supplied, one DB row is created per item_id in a single request.

## Request body

- object
  - `membership_ids` string — List of membership IDs to which the booking rule applies. Cannot contain empty GUID values.
  - `item_type` string — Type of item for which the rule is being created. Valid values: 0 (Class), 1 (Amenity).
  - `item_ids` string — List of item identifiers. For classes (item_type=0), provide the class ID as a string (for example, "1001"). For amenities (item_type=1), provide the amenity GUID. One rule is created per item ID.
  - `advance_booking_days` integer — Number of days in advance that members can book. Must be greater than 0.

## Response `200`

200

- union
  - object
    - `rule_ids` string[]
    - `violating_items` unknown
    - `error` unknown
  - object
    - `rule_ids` string[]
    - `violating_items` unknown
    - `error` unknown

## Other responses

- `400` — 400
- `401` — 401
- `403` — 403
- `409` — 409
- `500` — 500

---

[API](https://skmtc.net/zenoti/apis/zenoti-authentication.md) · [All operations](https://skmtc.net/zenoti/apis/zenoti-authentication/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zenoti/zenoti-authentication/revisions/e628f892391a/schema)
