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-11-21T14:14:54.697Z","updated_at": "2024-11-21T14:14:54.697Z","max": 1,"min": 0}
id
Filter<>
Unique identifier
capacity_group_id
Filter<>
Identifier of the related occupancy group
product_id
Filter<>
Identifier of the related unit
created_at
Filter<>
Creation timestamp
updated_at
Filter<>
Last modification timestamp
max
Filter<>
Maximum allowed occupancy
min
Filter<>
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<>
Unique identifier
capacity_group_id
Filter<>
Identifier of the related occupancy group
product_id
Filter<>
Identifier of the related unit
created_at
Filter<>
Creation timestamp
updated_at
Filter<>
Last modification timestamp
max
Filter<>
Maximum allowed occupancy
min
Filter<>
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<>
Unique identifier
capacity_group_id
Filter<>
Identifier of the related occupancy group
product_id
Filter<>
Identifier of the related unit
created_at
Filter<>
Creation timestamp
updated_at
Filter<>
Last modification timestamp
max
Filter<>
Maximum allowed occupancy
min
Filter<>
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 '{}'