Skip to main content
An Event is a scheduled happening — online, physical, or hybrid — that users can RSVP to. Events support hosts, capacity limits, invite-only or space-scoped visibility, a guest list, a single cover image, and any number of images and files. RSVP counts are denormalized onto the event so every read carries up-to-date going / maybe / not-going totals without an extra query. Events belong to the events bundle. They work standalone, but some behaviors depend on other bundles: space-scoping and members visibility require the spaces bundle, the cover, images and files require the files-images bundle, and invite/update/cancel notifications require the notifications bundle. When a dependency is absent, that specific behavior is rejected or skipped — the rest of the events surface keeps working.

Event

Cover and files

An event holds one cover image and a list of any number of images and files, all of them File records with the event’s eventId, returned together in files (with include=files). Find the cover in files by coverImageId.
  • Upload the cover as coverFile (with coverFile.options), images as images (with images.options; processed into sizes) and other files as files (optional files.options; stored as uploaded), on Create Event or Update Event. Uploads need the files-images bundle.
  • Replace the cover by sending a new coverFile on update; the old cover file is deleted. Images and files sent on update are added after the existing ones.
  • Remove files with removeFileIds on update: list files and/or the cover (removing the cover sets coverImageId to null). Delete File refuses the files of a live event; once the event is soft-deleted with its files kept, their owner can delete them there.
  • Order: the list counts up from 0 in upload order, a request’s images before its files. A cover uploaded through v8 has position -1, so it comes back first; a cover uploaded through the v7 API has 0. Always find the cover by coverImageId.
Uninstalling the events bundle deletes every event’s files and their stored blobs. What deleting one event does to its files is described in Delete Event.

Type

The type field controls which location fields are required on create and update:

Visibility

Visibility is enforced server-side on every read — an event you can’t see returns 404 (its existence is never leaked), and lists leave it out with totals that match. Two more groups see an event whatever its visibility:
  • Its hosts (the owner and everyone in hostIds), while they are active members of the event’s space. For an event with no space, hosts always see it. A host who isn’t an active member of the event’s space (they left, were removed, are pending or are banned) sees the event only as a regular viewer would.
  • The space’s admins and moderators: active admins and moderators of the event’s space see every event in it, invite events they weren’t invited to included. This is the event’s own space only: an admin or moderator of a space above it doesn’t see it unless they also hold that role in the event’s space.
On top of that, an event in a space follows the space’s reading rules: you see it only if you can read its space — you’re an active member of it, or its readingPermission is "anyone" and you can read the space above it, and the space isn’t hidden from you (see Who can read content). An event in a space you can’t read is hidden from everyone it would otherwise be shown to, hosts included. An event whose spaceId points at no space (for example, one kept after the spaces bundle was uninstalled) is left out of every read. A service key sees exactly what the user it names in actingUserId sees, and only what an anonymous caller sees when it names nobody: there is no key bypass.

Owner and hosts

The user who creates an event is its owner (userId). The owner is always one of its hosts: they appear in hostIds, can’t step down and can’t be removed. Other hosts are added by the owner. Active membership. On an event in a space, every host power needs active membership of that space and no ban in it or in any space above it. A host who loses it keeps the role (they stay in hostIds) but loses its powers until they are an active member again: the owner may then only cancel or delete the event, and another host may only step down. Every other host action answers 403 event/not-space-member. Anyone made a host of an event in a space, at create or later, must be an active member of that space (409 event/host-not-member). Events with no owner. When the owner’s account is deleted, userId becomes null and the event keeps its other hosts. They can still edit it and manage invites (with active membership), and any of them may cancel or delete it. Nobody can add or remove hosts. The last remaining host can’t step down (409 event/last-host); they can cancel the event instead. An event whose only host’s account is deleted is cancelled automatically. Events with no space follow the same owner rules, with no membership requirement and no space admins or moderators.

Capacity & RSVP rules

  • An RSVP can be going, maybe, or not-going. There is one RSVP per user per event.
  • RSVPs close at startTime and are rejected on cancelled events.
  • A "maybe" RSVP is rejected when allowMaybe is false.
  • A transition into going is rejected with event/full when rsvpCounts.going has reached capacity. Capacity is checked under a row-level lock, so concurrent RSVPs can never oversell the event.