Publishes a draft event to your live site. Once published, the event's status changes from DRAFT
to UPCOMING.
It's impossible to revert the DRAFT
status after publishing. The only option is to clone the event, and then delete the original one.
You can only call this method when authenticated as a Wix app or Wix user identity.
function publishDraftEvent(
eventId: string,
options: PublishDraftEventOptions,
): Promise<PublishDraftEventResponse>;
Event ID.
Optional fields.
import { wixEventsV2 } from "@wix/events";
async function publishDraftEvent(eventId, options) {
const response = await wixEventsV2.publishDraftEvent(eventId, options);
}
There are 2 errors with this status code.
This method may also return standard errors. Learn more about standard Wix errors.