Skip to main content
Remove Invite
Removes a user’s EventInvite. Host-only: the caller must be the owner or in hostIds, and, for an event in a space, an active member of that space who isn’t banned in it or a space above it; the space’s admins and moderators can’t. A service key acts as the host it names in actingUserId. Removing the invite revokes access to an invite-only event. The user’s RSVP is deleted (decrementing the matching rsvpCounts entry) only when an invite was actually removed and the user can no longer RSVP to the event: on an invite event, a host who is an active member of the event’s space keeps their RSVP, and anyone else — a space admin or moderator who isn’t a host included — loses it. On public and members events the RSVP is never touched. Everything runs under a row-level lock. Removing a non-invited user is an idempotent no-op success.

Path Parameters

string
required
UUID of the event.
string
required
The invitee to remove. A malformed id returns 400 event/invalid-params.

Query Parameters

A DELETE takes no body: every field besides the path goes in the query string.
string
Required with a service key: the user this request acts as. It has exactly that user’s powers, so it is refused unless they are a host of the event, and it is recorded as theirs. A user token always acts as its own user and must not send it (400 event/acting-user-not-allowed).

Response

Returns the updated Event with refreshed rsvpCounts.

Error Responses

The request carried a body. A DELETE takes no body: the invitee goes in the path and actingUserId in the query string.
A service key sent no actingUserId.
actingUserId is not a user id.
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.
The event doesn’t exist, or the caller can’t see it and isn’t one of its hosts.
The caller isn’t a host. The space’s admins and moderators can see the invite list but can’t change it.
The caller is a host, but the event is in a space they aren’t an active member of, or they are banned in it or a space above it. One body for every case.
DELETE /v8/:projectId/events/:eventId/invites, with the invitee in a request body, is not a v8 route. Once the request passes the checks that run ahead of it (such as the bundle check and id validation), it gets this error, with or without a body.
See also: useRemoveInvite