Core resources


Administration


Booking flow

Product occupancies

Occupancy limits per unit per occupancy group

The product occupancy object

Attributes

iduuid

Unique identifier

occupancy_group_iduuid
occupancy_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 product occupancy object
{
"id": "00000000-0000-0000-0000-000000000000",
"occupancy_group_id": "00000000-0000-0000-0000-000000000000",
"product_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-02-24T18:27:56.162Z",
"updated_at": "2024-02-24T18:27:56.162Z",
"max": 1,
"min": 0
}

List product occupancies

Filters

idFilter<uuid>

Unique identifier

occupancy_group_idFilter<uuid>

Identifier of the related occupancy group

product_idFilter<uuid>

Identifier of the related unit

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

maxFilter<integer>

Maximum allowed occupancy

minFilter<integer>

Minimum allowed occupancy

Responses

200

A list of product occupancies with the selected columns

206

Partial Content

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

Create product occupancies

Body

Partial<ProductOccupancy>
| Array<Partial<ProductOccupancy>>

Responses

201

The newly created product occupancies with the selected columns

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

Delete product occupancies

Filters

idFilter<uuid>

Unique identifier

occupancy_group_idFilter<uuid>

Identifier of the related occupancy group

product_idFilter<uuid>

Identifier of the related unit

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

maxFilter<integer>

Maximum allowed occupancy

minFilter<integer>

Minimum allowed occupancy

Responses

204

The deleted product occupancies with the selected columns

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

Update product occupancies

Filters

idFilter<uuid>

Unique identifier

occupancy_group_idFilter<uuid>

Identifier of the related occupancy group

product_idFilter<uuid>

Identifier of the related unit

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

maxFilter<integer>

Maximum allowed occupancy

minFilter<integer>

Minimum allowed occupancy

Body

Partial<ProductOccupancy>

Responses

204

The updated product occupancies with the selected columns

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