BookableAreas

Duplicate a bookable area

Creates a copy of an existing BookableArea under the same site and organisation. Useful for seeding additional areas off an existing one — e.g. "Hot Tub 2" copied from "Hot Tub 1".

Requires the SETTINGS_MANAGE permission on the area's site.

post/shop/bookable-areas/{bookableAreaId}/copy

Request body

namestring required

Display name for the new copy.

descriptionstring

Long-form description for the new copy, shown to customers on the shopfront. Markdown is rendered. Omit to inherit the source area's description.

capacityinteger required

Maximum guests this area can hold concurrently. Defaults to the source area's capacity when omitted. Lowering capacity later does not affect existing bookings already above the limit.

zone_idsstring[]

Zones the copy belongs to. Filtered to the source area's site.

Example request

{
  "name": "Hot Tub 2",
  "description": "A second hot-tub bay alongside the first, set up for couples bookings.",
  "capacity": 4
}

Response

A single BookableArea.

Example response

{
  "data": {
    "id": "5dcb47800000000000000000",
    "organisation_id": "0193b6e0-3b56-7000-9f50-9d3d5e2c1111",
    "site_id": "0193b6e0-3b56-7000-9f50-9d3d5e2c2222",
    "name": "Hot Tub 1",
    "description": "Private rooftop hot tub for up to four guests. 38°C, sunset\nviews over the gardens.\n",
    "capacity": 4,
    "availability_rules": [
      {
        "date_from": "2021-02-15",
        "date_to": "2021-02-15",
        "time_from": "11:00",
        "time_to": "17:00"
      }
    ],
    "zones": [
      {
        "id": "5f1234567890abcdef123456",
        "name": "Pool Deck",
        "organisation_id": "22222222-2222-2222-2222-222222222222",
        "site_id": "11111111-1111-1111-1111-111111111111"
      }
    ]
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.