Core resources
Administration
Booking flow
Occupancy limits per unit per occupancy group
id
uuid
Unique identifier
created_at
timestamp with time zone
Creation timestamp
updated_at
timestamp with time zone
Last modification timestamp
max
integer
Maximum allowed occupancy
min
integer
Minimum allowed occupancy
{"id": "00000000-0000-0000-0000-000000000000","occupancy_group_id": "00000000-0000-0000-0000-000000000000","product_id": "00000000-0000-0000-0000-000000000000","created_at": "2024-05-23T14:34:18.797Z","updated_at": "2024-05-23T14:34:18.797Z","max": 1,"min": 0}
id
Filter<uuid>
Unique identifier
occupancy_group_id
Filter<uuid>
Identifier of the related occupancy group
product_id
Filter<uuid>
Identifier of the related unit
created_at
Filter<timestamp with time zone>
Creation timestamp
updated_at
Filter<timestamp with time zone>
Last modification timestamp
max
Filter<integer>
Maximum allowed occupancy
min
Filter<integer>
Minimum allowed occupancy
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"
Partial<ProductOccupancy>
| Array<Partial<ProductOccupancy>>
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 '[]'
id
Filter<uuid>
Unique identifier
occupancy_group_id
Filter<uuid>
Identifier of the related occupancy group
product_id
Filter<uuid>
Identifier of the related unit
created_at
Filter<timestamp with time zone>
Creation timestamp
updated_at
Filter<timestamp with time zone>
Last modification timestamp
max
Filter<integer>
Maximum allowed occupancy
min
Filter<integer>
Minimum allowed occupancy
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"
id
Filter<uuid>
Unique identifier
occupancy_group_id
Filter<uuid>
Identifier of the related occupancy group
product_id
Filter<uuid>
Identifier of the related unit
created_at
Filter<timestamp with time zone>
Creation timestamp
updated_at
Filter<timestamp with time zone>
Last modification timestamp
max
Filter<integer>
Maximum allowed occupancy
min
Filter<integer>
Minimum allowed occupancy
Partial<ProductOccupancy>
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 '{}'