Cancels an event.
After cancellation, registration for an event is closed. To reuse the event, clone and publish it again. If event cancellation notifications are enabled, canceling an event automatically triggers the sending of cancellation emails and/or push notifications to registered guests.
You can only call this method when authenticated as a Wix app or Wix user identity.
function cancelEvent(
eventId: string,
options: CancelEventOptions,
): Promise<CancelEventResponse>;
Event ID.
Optional fields.
import { wixEventsV2 } from "@wix/events";
async function cancelEvent(eventId, options) {
const response = await wixEventsV2.cancelEvent(eventId, options);
}
There is 1 error with this status code.
This method may also return standard errors. Learn more about standard Wix errors.