EventSeries
Last updated
Last updated
EventSeries
The entire API is built around delivering physical activities to consumers. The most important endpoint delivering an app on top of the imin Events API, which helps customers find physical activities, is /events-api/v2/event-series
(see for Swagger reference documentation). So, what is an EventSeries
?
An EventSeries
is composed of three main types of objects:
EventSeries
: a particular physical activity;
SessionSeries
: a particular location - an EventSeries
can have multiple SessionSeries
items as children; and
ScheduledSession
: a particular time or according to a particular schedule - a SessionSeries
can have multiple ScheduledSession
s items as children.
A local volunteering organization named BeneficialRun is organizing a Run in Romford called Run and plant trees in local park. This session is going to take place on Thursday 13th September at 7:30pm.
These is a leisure centre named MoreGood Leisure Centre in Moorgate, London. They host Swimming Lessons every Tuesday at 8:00am starting from 23rd October and running for 6 months. The swimming lessons are for Intermediate swimmers and the instructor's name is Brad Chadley.
In the above examples (these are made up), the values in bold directly correlate to fields in an EventSeries
, a SessionSeries
or a ScheduledSession
. For example, in the first example, the EventSeries
would have a .name
field with value: Run and plant trees in local park.
The specification for an EventSeries
is defined in the . It is a stricter sub-set of the OpenActive Specification for .
EventSeries
Example #1 above is a physical activity that only happens at one place and at a specific time. Therefore, the EventSeries
that describes it will have only one SessionSeries
, which will in turn have only one ScheduledSession
. As such, this an example of a One-to-One EventSeries
.
Snippet from Example #1's session:
Example #2 above is a physical activity that occurs on many occasions. If the same activity is rolled out in other leisure centres, it may also occur in many locations. Therefore, the EventSeries
will have one or more SessionSeries
items, each of which will have one or more ScheduledSession
items. As such, this is an example of a One-to-Many EventSeries
.
Snippet from Example #2's session: