Use Case: Create a 1 hr Open Play
This guide walks you through creating a 1-hour open play event for a specific pod and court, using sessions and bookings.
Content
In this use case, you will:
Select an area
Select a pod
Select a court (table)
Retrieve available sessions in a 1-hour time window
Create a booking (event)
Verify the event was created successfully
By the end of this guide, you will have a published 1-hour open play event assigned to a specific court.
Key Concepts
Before starting, understand these relationships:
Area → physical location grouping
Pod → group of courts inside an area
Table (Court) → individual playable surface
Session → bookable 30-minute time slot
SessionTable → a specific court within a specific session
Relationship hierarchy:
Important: 1 Hour = 2 Sessions
Each session last 30 minutes.
To create a 1-hour event, you must book 2 consecutive 30-minute sessions
Flow Overview
1
Get areas, pods and courts
2
Get sessions inside time window
3
Create booking
4
Verify event
Outcome of This Section
You now understand:
The system structure (area → pod → table)
How sessions relate to pods
Why sessionTable IDs are required for booking
In the next section, you will retrieve the list of areas, pods and courts to allow the user to choose where the event will take place.
Last updated
Was this helpful?

