Skip to main content
Cancel Event
Cancels an event by setting its status to "cancelled". The event remains fetchable, but new and changed RSVPs are rejected. Allowed for the event’s owner (also when they are no longer an active member of its space) and for an active admin or moderator of the event’s space. Other hosts can’t cancel an event that has an owner. When the owner’s account was deleted, any of its hosts may cancel it — for an event in a space, only while an active member of that space (an event kept after the spaces bundle was uninstalled counts as having no space here). A service key acts as the user it names in actingUserId, with that user’s powers. On cancel, an event-cancelled notification is fanned out to the going/maybe RSVP holders who can still see the event (best-effort, requires the notifications bundle). To remove an event entirely, use Delete Event.

Path Parameters

string
required
UUID of the event to cancel.

Body Parameters

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 the event’s owner, an active admin or moderator of its space, or (on an event with no owner) one of its hosts, 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 object with status: "cancelled". When the caller can’t see the event (for example an owner who is no longer an active member of its space), the response is only:

Error Responses

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.
actingUserId was sent in the query string. On this endpoint every field goes in the request body.
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 the owner or an admin or moderator of the event’s space (other hosts included), and the event has an owner — or the event has no owner and the caller isn’t one of its hosts.
On an event with no owner, 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.
See also: useCancelEvent