Core resources


Administration


Booking flow

Capacities

Occupancy limits per unit per occupancy group

The capacity object

Attributes

iduuid

Unique identifier

capacity_group_iduuid
capacity_groups.id

Identifier of the related occupancy group

product_iduuid
products.id

Identifier of the related unit

created_attimestamp with time zone

Creation timestamp

updated_attimestamp with time zone

Last modification timestamp

maxinteger

Maximum allowed occupancy

mininteger

Minimum allowed occupancy

The capacity object
{
"id": "00000000-0000-0000-0000-000000000000",
"capacity_group_id": "00000000-0000-0000-0000-000000000000",
"product_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-11-21T14:14:54.697Z",
"updated_at": "2024-11-21T14:14:54.697Z",
"max": 1,
"min": 0
}

List capacities

Filters

idFilter<>

Unique identifier

capacity_group_idFilter<>

Identifier of the related occupancy group

product_idFilter<>

Identifier of the related unit

created_atFilter<>

Creation timestamp

updated_atFilter<>

Last modification timestamp

maxFilter<>

Maximum allowed occupancy

minFilter<>

Minimum allowed occupancy

Responses

200

A list of capacities with the selected columns

206

Partial Content

GET/capacities
curl -X GET "https://api.bookingmood.com/v1/capacities?select=*" \
  -H "Authorization: Bearer YOUR_API_KEY"

Create capacities

Body

Partial<Capacity>
| Array<Partial<Capacity>>

Responses

201

The newly created capacities with the selected columns

POST/capacities
curl -X POST "https://api.bookingmood.com/v1/capacities" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '[]'

Delete capacities

Filters

idFilter<>

Unique identifier

capacity_group_idFilter<>

Identifier of the related occupancy group

product_idFilter<>

Identifier of the related unit

created_atFilter<>

Creation timestamp

updated_atFilter<>

Last modification timestamp

maxFilter<>

Maximum allowed occupancy

minFilter<>

Minimum allowed occupancy

Responses

204

The deleted capacities with the selected columns

DELETE/capacities
curl -X DELETE "https://api.bookingmood.com/v1/capacities" \
  -H "Authorization: Bearer YOUR_API_KEY"

Update capacities

Filters

idFilter<>

Unique identifier

capacity_group_idFilter<>

Identifier of the related occupancy group

product_idFilter<>

Identifier of the related unit

created_atFilter<>

Creation timestamp

updated_atFilter<>

Last modification timestamp

maxFilter<>

Maximum allowed occupancy

minFilter<>

Minimum allowed occupancy

Body

Partial<Capacity>

Responses

204

The updated capacities with the selected columns

PATCH/capacities
curl -X PATCH "https://api.bookingmood.com/v1/capacities" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{}'