Skip to content

Providing Schedule Information \[BETA]

Schedules

At present, our Platform only supports:

  • repeatFrequency - daily, weekly and monthly.
  • byDay - schema days (not iCal).
  • byMonthDay - numbers.

Daily

The following is an example of a session that takes place every other day:

{
"@context": [
"https://openactive.io/"
],
"@type": "Schedule",
"repeatFrequency": "P2D",
"startDate": "2018-10-19",
"endDate": "2018-11-04",
"startTime": "08:30",
"endTime": "09:30",
"duration": "PT1H",
"scheduleTimezone": "Europe/London",
"scheduledEventType": "ScheduledSession",
"idTemplate": "https://example.com/api/scheduled-sessions/{startDate}",
"urlTemplate": "https://example.com/scheduled-sessions/{startDate}"
}

Weekly

The following session will take place every week on Tuesday and Sunday:

{
"@context": [
"https://openactive.io/"
],
"@type": "Schedule",
"repeatFrequency": "P1W",
"startDate": "2018-10-19",
"endDate": "2018-11-04",
"startTime": "08:30",
"endTime": "09:30",
"byDay": [
"https://schema.org/Tuesday",
"https://schema.org/Sunday"
],
"duration": "PT1H",
"scheduleTimezone": "Europe/London",
"scheduledEventType": "ScheduledSession",
"idTemplate": "https://example.com/api/scheduled-sessions/{startDate}",
"urlTemplate": "https://example.com/scheduled-sessions/{startDate}"
}

Monthly

This session happens every month on the 5th and on the 15th:

{
"@context": [
"https://openactive.io/"
],
"@type": "Schedule",
"repeatFrequency": "P1M",
"startDate": "2018-10-05",
"endDate": "2018-12-15",
"startTime": "08:30",
"endTime": "09:30",
"duration": "PT1H",
"byMonthDay": [
5,
15
],
"scheduleTimezone": "Europe/London",
"scheduledEventType": "ScheduledSession",
"idTemplate": "https://example.com/api/scheduled-sessions/{startDate}",
"urlTemplate": "https://example.com/scheduled-sessions/{startDate}"
}

PartialSchedules