Skip to main content
Set RSVP
Sets or changes the caller’s RSVP. A new RSVP is created, or an existing one is switched, and the event’s rsvpCounts are updated atomically. Requires authentication, and the caller must be able to see the event (otherwise 404) — for example, a members event once a ban ends the caller’s active membership answers 404. Transitions into going are capacity-checked under a row-level lock, so an event can never be oversold. Rules:
  • RSVPs close at startTime.
  • A cancelled event rejects RSVPs.
  • "maybe" is rejected when the event’s allowMaybe is false.
  • "going" (new or switched into) is rejected when rsvpCounts.going has reached capacity.
  • On an event in a space, a caller banned in the space or any space above it can’t RSVP, even to an event they can still see (403 space/posting-not-allowed).
  • On an invite event, only invited users and hosts can RSVP. The space’s admins and moderators can see every invite event in their space, but can’t RSVP to one unless invited (403 event/not-invited).

Path Parameters

string
required
UUID of the event.

Body Parameters

string
required
"going", "maybe", or "not-going". The spelling "not_going" returns 400 event/unsupported-param.
string
Service key only, and required with one: the user this request acts as, whose RSVP is set. The request is held to that user’s own event visibility: an event they can’t see (an invite event they weren’t invited to, a members event of a space they aren’t in) returns 404. A user token always acts as its own user and must not send it, and neither may a request with no credentials (400 event/acting-user-not-allowed).

Response

Returns the Event with refreshed rsvpCounts and the caller’s userRsvp.

Error Responses

A service key sent no actingUserId.
A user token sent actingUserId, even naming its own user. Only a service key names the user it acts as; a user token always acts as its own user.
Returned when a service key names an actingUserId that isn’t a user in this project.
status was "not_going". Not going is "not-going".
Or the request sent userId. On this route the user a service key acts as is actingUserId.With a service key:
With a user token, or with no credentials:
The caller can see the event but is banned in its space or a space above it.
An invite event the caller can see only as an admin or moderator of its space, without an invite.
See also: useSetRsvp