Prompt

How do I support recurring events with a calendar API?

Technology / Scheduling & Booking Software1 observationLast seen Oct 15, 2026

Latest observation

Oct 15, 2026OpenAI APIWeb search: off

To support recurring events in a calendar API, design for one recurring rule plus individual exceptions/overrides rather than storing every occurrence as a separate “full” event.

1) Model the series, not just instances

Store a master event that represents the pattern:

  • title, description, location, attendees, etc.
  • start date/time
  • duration
  • recurrence rule

Example recurrence fields:

  • rrule: "FREQ=WEEKLY;INTERVAL=1;BYDAY=MO,WE,FR"
  • timezone: "America/New_York"
  • optional:
    • until
    • count
    • byday, bymonthday, etc.

2) Represent occurrences separately only when needed

You usually have three kinds of records:

A. Series master

The recurring definition.

B. Generated occurrences

You can generate these on the fly when querying, or cache them for performance.

C. Exceptions / overrides

For cases like:

  • one occurrence moved to a different time
  • one occurrence canceled
  • one occurrence edited differently from the series

This is often represented by:

  • series_id
  • original_occurrence_start
  • status: canceled | modified
  • changed fields

3) Support common recurrence rules

At minimum, support:

  • daily
  • weekly
  • monthly
  • yearly

Useful rule options:

  • interval
  • byday
  • bymonthday
  • bymonth
  • count
  • until

Using an established standard like iCalendar RRULE is strongly recommended.

4) Expand occurrences on query

When a client asks for events in a date range:

  1. fetch single events
  2. fetch recurring series overlapping the range
  3. expand each series into occurrences in that range
  4. apply exceptions/overrides
  5. return the final list

This avoids storing millions of future instances.

5) Handle edits carefully

When editing a recurring event, offer actions like:

  • This occurrence only
  • This and future occurrences
  • Entire series

Behavior:

  • This occurrence only → create an exception/override record
  • This and future → split the series into two rules
  • Entire series → update master event

6) Handle deletions as cancellations

Don’t necessarily delete an occurrence from the series. Mark that specific occurrence as:

  • canceled: true

7) Include timezone support

Recurring events are tricky across DST changes. Store:

  • original timezone
  • local wall-clock start time
  • recurrence rule in local time context

Then generate occurrences using timezone-aware logic.

8) API shape example

A series create payload might look like:

{
  "title": "Team Sync",
  "start": "2026-01-05T09:00:00",
  "durationMinutes": 30,
  "timezone": "America/New_York",
  "recurrence": {
    "freq": "weekly",
    "interval": 1,
    "byday": ["MO", "WE", "FR"],
    "until": "2026-03-31"
  }
}

An overridden occurrence:

{
  "seriesId": "evt_123",
  "originalStart": "2026-01-12T09:00:00",
  "status": "moved",
  "newStart": "2026-01-12T10:00:00"
}

9) Use a library if possible

Parsing and expanding recurrence rules is easy to get wrong. Use a standard library:

  • iCalendar RRULE libraries
  • date/time libraries with timezone support

10) Be clear about query semantics

Document how your API behaves for:

  • date-range queries
  • pagination
  • conflict detection
  • exception precedence
  • recurring event IDs vs occurrence IDs

A common approach:

  • recurring series has one stable id
  • each returned occurrence has an occurrenceId or composite key like:
    • seriesId + originalStart

If you want, I can also show:

  1. a recommended database schema,
  2. sample REST endpoints, or
  3. how to implement recurrence expansion in code.

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (1 observation for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.