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-09-08T00:45:46.792Z","updated_at": "2024-09-08T00:45:46.792Z","description": {},"name": {},"name_singular": {},"order": 1,"type": "manual"}
id
Filter<uuid>
Unique identifier
organization_id
Filter<uuid>
Identifier of the organization this occupancy group is defined in
created_at
Filter<timestamp with time zone>
Creation timestamp
updated_at
Filter<timestamp with time zone>
Last modification timestamp
description
Filter<jsonb>
Localized description
name
Filter<jsonb>
Localized name
name_singular
Filter<jsonb>
Localized singular name
order
Filter<integer>
Order of the occupancy group as displayed on widgets and websites
type
Filter<"manual" | "sum">
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<uuid>
Unique identifier
organization_id
Filter<uuid>
Identifier of the organization this occupancy group is defined in
created_at
Filter<timestamp with time zone>
Creation timestamp
updated_at
Filter<timestamp with time zone>
Last modification timestamp
description
Filter<jsonb>
Localized description
name
Filter<jsonb>
Localized name
name_singular
Filter<jsonb>
Localized singular name
order
Filter<integer>
Order of the occupancy group as displayed on widgets and websites
type
Filter<"manual" | "sum">
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<uuid>
Unique identifier
organization_id
Filter<uuid>
Identifier of the organization this occupancy group is defined in
created_at
Filter<timestamp with time zone>
Creation timestamp
updated_at
Filter<timestamp with time zone>
Last modification timestamp
description
Filter<jsonb>
Localized description
name
Filter<jsonb>
Localized name
name_singular
Filter<jsonb>
Localized singular name
order
Filter<integer>
Order of the occupancy group as displayed on widgets and websites
type
Filter<"manual" | "sum">
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 '{}'