Core resources
Administration
Booking flow
Distinct groups that can occupy units. Useful for configuring separate prices & limits for adult / children / pets.
id
uuid
Unique identifier
organization_id
uuid
Identifier of the organization this occupancy group is defined in
created_at
timestamp with time zone
Creation timestamp
updated_at
timestamp with time zone
Last modification timestamp
description
jsonb
Localized description
name
jsonb
Localized name
name_singular
jsonb
Localized singular name
order
integer
Order of the occupancy group as displayed on widgets and websites
type
"manual" | "sum"
Type of the occupancy group, either manual
or sum
{"id": "00000000-0000-0000-0000-000000000000","organization_id": "00000000-0000-0000-0000-000000000000","created_at": "2024-11-21T12:22:21.751Z","updated_at": "2024-11-21T12:22:21.751Z","description": {},"name": {},"name_singular": {},"order": 1,"type": "manual"}
id
Filter<>
Unique identifier
organization_id
Filter<>
Identifier of the organization this occupancy group is defined in
created_at
Filter<>
Creation timestamp
updated_at
Filter<>
Last modification timestamp
description
Filter<>
Localized description
name
Filter<>
Localized name
name_singular
Filter<>
Localized singular name
order
Filter<>
Order of the occupancy group as displayed on widgets and websites
type
Filter<>
Type of the occupancy group, either manual
or sum
200
A list of capacity groups with the selected columns
206
Partial Content
GET
/capacity_groups
curl -X GET "https://api.bookingmood.com/v1/capacity_groups?select=*" \ -H "Authorization: Bearer YOUR_API_KEY"
Partial<CapacityGroup>
| Array<Partial<CapacityGroup>>
201
The newly created capacity groups with the selected columns
POST
/capacity_groups
curl -X POST "https://api.bookingmood.com/v1/capacity_groups" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '[]'
id
Filter<>
Unique identifier
organization_id
Filter<>
Identifier of the organization this occupancy group is defined in
created_at
Filter<>
Creation timestamp
updated_at
Filter<>
Last modification timestamp
description
Filter<>
Localized description
name
Filter<>
Localized name
name_singular
Filter<>
Localized singular name
order
Filter<>
Order of the occupancy group as displayed on widgets and websites
type
Filter<>
Type of the occupancy group, either manual
or sum
204
The deleted capacity groups with the selected columns
DELETE
/capacity_groups
curl -X DELETE "https://api.bookingmood.com/v1/capacity_groups" \ -H "Authorization: Bearer YOUR_API_KEY"
id
Filter<>
Unique identifier
organization_id
Filter<>
Identifier of the organization this occupancy group is defined in
created_at
Filter<>
Creation timestamp
updated_at
Filter<>
Last modification timestamp
description
Filter<>
Localized description
name
Filter<>
Localized name
name_singular
Filter<>
Localized singular name
order
Filter<>
Order of the occupancy group as displayed on widgets and websites
type
Filter<>
Type of the occupancy group, either manual
or sum
Partial<CapacityGroup>
204
The updated capacity groups with the selected columns
PATCH
/capacity_groups
curl -X PATCH "https://api.bookingmood.com/v1/capacity_groups" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{}'