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’seventId, returned together in files (with include=files). Find the cover in files by coverImageId.
- Upload the cover as
coverFile(withcoverFile.options), images asimages(withimages.options; processed into sizes) and other files asfiles(optionalfiles.options; stored as uploaded), on Create Event or Update Event. Uploads need thefiles-imagesbundle. - Replace the cover by sending a new
coverFileon update; the old cover file is deleted. Images and files sent on update are added after the existing ones. - Remove files with
removeFileIdson update: list files and/or the cover (removing the cover setscoverImageIdtonull). 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
0in upload order, a request’s images before its files. A cover uploaded through v8 hasposition-1, so it comes back first; a cover uploaded through the v7 API has0. Always find the cover bycoverImageId.
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
Thetype 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 returns404 (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,
inviteevents 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.
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, ornot-going. There is one RSVP per user per event. - RSVPs close at
startTimeand are rejected oncancelledevents. - A
"maybe"RSVP is rejected whenallowMaybeisfalse. - A transition into
goingis rejected withevent/fullwhenrsvpCounts.goinghas reachedcapacity. Capacity is checked under a row-level lock, so concurrent RSVPs can never oversell the event.

