Skip to main content
DELETE
/
:projectId
/
api
/
v7
/
events
/
:eventId
/
invites
Remove Invite
curl --request DELETE \
  --url https://api.sublay.io/api/v6/:projectId/api/v7/events/:eventId/invites \
  --header 'Content-Type: application/json' \
  --data '
{
  "userId": "<string>"
}
'
Removes a user’s EventInvite. Host-only (service/master keys bypass the check). 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

eventId
string
required
UUID of the event.

Body Parameters

userId
string
required
The invitee to remove.

Response

Returns the updated Event with refreshed rsvpCounts.

Error Responses

{ "error": "Event not found", "code": "event/not-found" }
{ "error": "Only a host of this event may manage its invites.", "code": "event/forbidden" }
See also: useRemoveInvite