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","capacity_group_id": "00000000-0000-0000-0000-000000000000","product_id": "00000000-0000-0000-0000-000000000000","created_at": "2024-09-08T00:24:34.982Z","updated_at": "2024-09-08T00:24:34.982Z","max": 1,"min": 0}
id
Filter<uuid>
Unique identifier
capacity_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 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"
Partial<Capacity>
| Array<Partial<Capacity>>
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 '[]'
id
Filter<uuid>
Unique identifier
capacity_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 capacities with the selected columns
DELETE
/capacities
curl -X DELETE "https://api.bookingmood.com/v1/capacities" \ -H "Authorization: Bearer YOUR_API_KEY"
id
Filter<uuid>
Unique identifier
capacity_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<Capacity>
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 '{}'