Core resources


Administration


Booking flow

Capacity group dependencies

Dependencies between occupancy groups. When booking, the value of the group referenced by accumulator_id will be set to the sum of the groups referenced by element_id.

The capacity group dependency object

Attributes

iduuid

Unique identifier

accumulator_iduuid
capacity_groups.id

Identifier of the accumulating occupancy group

element_iduuid
capacity_groups.id

Identifier of the accumulated occupancy group

created_attimestamp with time zone

Creation timestamp

The capacity group dependency object
{
"id": "00000000-0000-0000-0000-000000000000",
"accumulator_id": "00000000-0000-0000-0000-000000000000",
"element_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-12-09T09:55:39.313Z"
}

List capacity group dependencies

Filters

idFilter<>

Unique identifier

accumulator_idFilter<>

Identifier of the accumulating occupancy group

element_idFilter<>

Identifier of the accumulated occupancy group

created_atFilter<>

Creation timestamp

Responses

200

A list of capacity group dependencies with the selected columns

206

Partial Content

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

Create capacity group dependencies

Body

Partial<CapacityGroupDependency>
| Array<Partial<CapacityGroupDependency>>

Responses

201

The newly created capacity group dependencies with the selected columns

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

Delete capacity group dependencies

Filters

idFilter<>

Unique identifier

accumulator_idFilter<>

Identifier of the accumulating occupancy group

element_idFilter<>

Identifier of the accumulated occupancy group

created_atFilter<>

Creation timestamp

Responses

204

The deleted capacity group dependencies with the selected columns

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

Update capacity group dependencies

Filters

idFilter<>

Unique identifier

accumulator_idFilter<>

Identifier of the accumulating occupancy group

element_idFilter<>

Identifier of the accumulated occupancy group

created_atFilter<>

Creation timestamp

Body

Partial<CapacityGroupDependency>

Responses

204

The updated capacity group dependencies with the selected columns

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