Core resources


Administration


Booking flow

Capacity groups

Distinct groups that can occupy units. Useful for configuring separate prices & limits for adult / children / pets.

The capacity group object

Attributes

iduuid

Unique identifier

organization_iduuid

Identifier of the organization this occupancy group is defined in

created_attimestamp with time zone

Creation timestamp

updated_attimestamp with time zone

Last modification timestamp

descriptionjsonb

Localized description

namejsonb

Localized name

name_singularjsonb

Localized singular name

orderinteger

Order of the occupancy group as displayed on widgets and websites

type"manual" | "sum"

Type of the occupancy group, either manual or sum

The capacity group object
{
"id": "00000000-0000-0000-0000-000000000000",
"organization_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-09-08T00:24:55.019Z",
"updated_at": "2024-09-08T00:24:55.019Z",
"description": {},
"name": {},
"name_singular": {},
"order": 1,
"type": "manual"
}

List capacity groups

Filters

idFilter<uuid>

Unique identifier

organization_idFilter<uuid>

Identifier of the organization this occupancy group is defined in

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

descriptionFilter<jsonb>

Localized description

nameFilter<jsonb>

Localized name

name_singularFilter<jsonb>

Localized singular name

orderFilter<integer>

Order of the occupancy group as displayed on widgets and websites

typeFilter<"manual" | "sum">

Type of the occupancy group, either manual or sum

Responses

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"

Create capacity groups

Body

Partial<CapacityGroup>
| Array<Partial<CapacityGroup>>

Responses

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 '[]'

Delete capacity groups

Filters

idFilter<uuid>

Unique identifier

organization_idFilter<uuid>

Identifier of the organization this occupancy group is defined in

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

descriptionFilter<jsonb>

Localized description

nameFilter<jsonb>

Localized name

name_singularFilter<jsonb>

Localized singular name

orderFilter<integer>

Order of the occupancy group as displayed on widgets and websites

typeFilter<"manual" | "sum">

Type of the occupancy group, either manual or sum

Responses

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"

Update capacity groups

Filters

idFilter<uuid>

Unique identifier

organization_idFilter<uuid>

Identifier of the organization this occupancy group is defined in

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

descriptionFilter<jsonb>

Localized description

nameFilter<jsonb>

Localized name

name_singularFilter<jsonb>

Localized singular name

orderFilter<integer>

Order of the occupancy group as displayed on widgets and websites

typeFilter<"manual" | "sum">

Type of the occupancy group, either manual or sum

Body

Partial<CapacityGroup>

Responses

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 '{}'