Skip to main content
Remove Invite
Removes a user’s EventInvite. Host-only. A service key acts as the host it names in actingUserId. Removing the invite revokes access to an invite-only event and also deletes that user’s RSVP (decrementing the matching rsvpCounts entry), all 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.
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