Core resources


Administration


Booking flow

Occupancy 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 occupancy group dependency object

Attributes

iduuid

Unique identifier

accumulator_iduuid
occupancy_groups.id

Identifier of the accumulating occupancy group

element_iduuid
occupancy_groups.id

Identifier of the accumulated occupancy group

created_attimestamp with time zone

Creation timestamp

The occupancy 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-05-11T23:32:35.192Z"
}

List occupancy group dependencies

Filters

idFilter<uuid>

Unique identifier

accumulator_idFilter<uuid>

Identifier of the accumulating occupancy group

element_idFilter<uuid>

Identifier of the accumulated occupancy group

created_atFilter<timestamp with time zone>

Creation timestamp

Responses

200

A list of occupancy group dependencies with the selected columns

206

Partial Content

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

Create occupancy group dependencies

Body

Partial<OccupancyGroupDependency>
| Array<Partial<OccupancyGroupDependency>>

Responses

201

The newly created occupancy group dependencies with the selected columns

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

Delete occupancy group dependencies

Filters

idFilter<uuid>

Unique identifier

accumulator_idFilter<uuid>

Identifier of the accumulating occupancy group

element_idFilter<uuid>

Identifier of the accumulated occupancy group

created_atFilter<timestamp with time zone>

Creation timestamp

Responses

204

The deleted occupancy group dependencies with the selected columns

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

Update occupancy group dependencies

Filters

idFilter<uuid>

Unique identifier

accumulator_idFilter<uuid>

Identifier of the accumulating occupancy group

element_idFilter<uuid>

Identifier of the accumulated occupancy group

created_atFilter<timestamp with time zone>

Creation timestamp

Body

Partial<OccupancyGroupDependency>

Responses

204

The updated occupancy group dependencies with the selected columns

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