Skip to main content
POST
/
:projectId
/
api
/
v7
/
events
/
:eventId
/
cancel
Cancel Event
curl --request POST \
  --url https://api.sublay.io/api/v6/:projectId/api/v7/events/:eventId/cancel
Cancels an event by setting its status to "cancelled". The event remains fetchable, but new and changed RSVPs are rejected. Host-only (service/master keys bypass the host check). On cancel, an event-cancelled notification is fanned out to all going/maybe RSVPs (best-effort, requires the notifications bundle). To remove an event entirely, use Delete Event.

Path Parameters

eventId
string
required
UUID of the event to cancel.

Response

Returns the updated Event object with status: "cancelled".

Error Responses

{ "error": "Event not found", "code": "event/not-found" }
{ "error": "Only a host of this event may cancel it.", "code": "event/forbidden" }
See also: useCancelEvent