POST

Publish Draft Event


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, then delete the original one.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Events - all permissions
Manage Events
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/events/v3/events/{eventId}/publish

Path Params
eventIdstringRequired

Event ID.

Body Params
fieldsArray <string>maxItems 20

Predefined sets of fields to return. If both fields and fieldsets are sent in the request, the union of both lists is returned.

Response Object
eventEvent

Published event.

List events by category
Request
cURL
curl -X POST 'https://www.wixapis.com/events/v3/events/1a5f4463-e484-4d03-b40f-8783bf3c16fb/publish' \ -H 'Authorization: <AUTH TOKEN>' \ -d '{ "fields": ["DETAILS", "TEXTS", "REGISTRATION", "URLS", "FORM", "DASHBOARD", "ONLINE_CONFERENCING_SESSION", "SEO_SETTINGS", "AGENDA", "CATEGORIES"] }'
Response
JSON
{ "event": { "id": "1a5f4463-e484-4d03-b40f-8783bf3c16fb", "location": { "name": "Le Cordon Bleu Paris", "type": "VENUE", "address": { "country": "FR", "subdivision": null, "city": "Paris", "postalCode": "75015", "streetAddress": { "number": "13-15", "name": "Quai André Citroën", "apt": "", "formattedAddressLine": null }, "addressLine2": null, "formattedAddress": "13-15 Quai André Citroën, 75015 Paris, France", "hint": null, "geocode": { "latitude": 48.84830129999999, "longitude": 2.2810077 }, "countryFullName": "France", "subdivisions": [ { "code": "IDF", "name": "Île-de-France", "type": "ADMINISTRATIVE_AREA_LEVEL_1", "typeInfo": null }, { "code": "Département de Paris", "name": "Département de Paris", "type": "ADMINISTRATIVE_AREA_LEVEL_2", "typeInfo": null }, { "code": "Paris", "name": "Paris", "type": "ADMINISTRATIVE_AREA_LEVEL_3", "typeInfo": null }, { "code": "FR", "name": "France", "type": "COUNTRY", "typeInfo": null } ], "subdivisionFullName": null }, "locationTbd": false }, "dateAndTimeSettings": { "dateAndTimeTbd": false, "dateAndTimeTbdMessage": null, "startDate": "2023-10-20T08:00:00Z", "endDate": "2023-10-22T16:00:00Z", "timeZoneId": "Europe/Paris", "hideEndDate": false, "showTimeZone": true, "recurrenceStatus": "ONE_TIME", "recurringEvents": { "individualEventDates": [], "categoryId": null }, "formatted": { "dateAndTime": "20 October 2023 at 10:00 – 22 October 2023 at 18:00 GMT+2", "startDate": "20 October 2023", "startTime": "10:00", "endDate": "22 October 2023", "endTime": "18:00" } }, "title": "Culinary Fusion: A Gastronomic Adventure", "shortDescription": "Prepare your taste buds for an extraordinary gastronomic adventure! ", "mainImage": null, "slug": "culinary-fusion-a-gastronomic-adventure", "languageCode": "en", "createdDate": "2023-07-12T12:40:56.315Z", "updatedDate": "2023-07-12T12:42:32Z", "status": "UPCOMING", "registration": { "type": "TICKETING", "status": "OPEN_TICKETS", "rsvp": { "responseType": "YES_ONLY", "limit": null, "waitlistEnabled": false, "startDate": null, "endDate": null }, "tickets": { "guestsAssignedSeparately": false, "ticketLimitPerOrder": 50, "stockManagerAppId": null, "currency": "EUR", "lowestPrice": { "value": "80.00", "currency": "EUR", "formattedValue": "€80" }, "highestPrice": { "value": "80.00", "currency": "EUR", "formattedValue": "€80" }, "soldOut": false, "taxSettings": null }, "external": null, "allowedGuestTypes": "VISITOR_OR_MEMBER", "initialType": "TICKETING", "registrationPaused": false, "registrationDisabled": false }, "calendarUrls": { "google": "http://calendar.google.com/calendar/render?action=TEMPLATE&text=Culinary+Fusion%3A+A+Gastronomic+Adventure&dates=20231020T080000Z%2F20231022T160000Z&location=13-15+Quai+Andr%C3%A9+Citro%C3%ABn%2C+75015+Paris%2C+France&details=Thank+you+for+registering+to+our+event%21+Your+tickets+are+attached+to+this+email.+Don%27t+forget+to+bring+them.%0A%0AWe%27re+looking+forward+to+seeing+you+there.%0A%0AHere+are+the+details%3A%0A%0ACulinary+Fusion%3A+A+Gastronomic+Adventure%0A20+October+2023+at+10%3A00+%E2%80%93+22+October+2023+at+18%3A00+GMT%2B2%0ALe+Cordon+Bleu+Paris%2C+13-15+Quai+Andr%C3%A9+Citro%C3%ABn%2C+75015+Paris%2C+France", "ics": "https://www.wixevents.com/media/v2/calendar?token=JWS.eyJraWQiOiJpb21iOUJ0eSIsImFsZyI6IkhTMjU2In0.eyJkYXRhIjoie1wiaW5zdGFuY2VJZFwiOlwiMWY2ZGM5MDYtODAzZC00NjUwLTgzZjUtNzJlYTFkODgxMDBiXCIsXCJldmVudElkXCI6e1widmFsdWVcIjpcIjFhNWY0NDYzLWU0ODQtNGQwMy1iNDBmLTg3ODNiZjNjMTZmYlwifSxcIm9jTGlua1wiOm51bGx9IiwiaWF0IjoxNjg5MTY1NzUyfQ.9mhahsL-2ZmCw5eFmm9Tq5v7LrvC9QR5zCDDLXZUlg" }, "eventPageUrl": { "base": "https://ievak9.wixsite.com/accessories", "path": "/event-details-registration/culinary-fusion-a-gastronomic-adventure" }, "form": { "controls": [ { "type": "NAME", "system": true, "name": "name", "inputs": [ { "name": "firstName", "array": false, "label": "First name", "additionalLabels": {}, "options": [], "mandatory": true, "maxLength": 50, "type": "TEXT", "maxSize": null, "defaultOptionSelection": null, "labels": [] }, { "name": "lastName", "array": false, "label": "Last name", "additionalLabels": {}, "options": [], "mandatory": true, "maxLength": 50, "type": "TEXT", "maxSize": null, "defaultOptionSelection": null, "labels": [] } ], "label": "First name, Last name", "orderIndex": 0, "id": "name" }, { "type": "INPUT", "system": true, "name": "email", "inputs": [ { "name": "email", "array": false, "label": "Email", "additionalLabels": {}, "options": [], "mandatory": true, "maxLength": 255, "type": "TEXT", "maxSize": null, "defaultOptionSelection": null, "labels": [] } ], "label": "Email", "orderIndex": 1, "id": "email" } ], "messages": { "rsvp": { "rsvpYesOption": "I'm Going", "rsvpNoOption": "Not Going", "positiveMessages": { "title": "Add your details", "confirmation": { "title": "Thank you!", "message": "An email with all the event info was sent to you.", "addToCalendarActionLabel": "Add to Calendar", "shareActionLabel": "Share" } }, "waitlistMessages": { "title": "Looks like this event is full. Join the waitlist.", "confirmation": { "title": "Thanks! You've been added to the waitlist.", "message": "We'll update you if additional spots become available.", "addToCalendarActionLabel": "Add to Calendar", "shareActionLabel": "Share" } }, "negativeMessages": { "title": "Add your details", "confirmation": { "title": "Sorry You Can't Make It", "shareActionLabel": "Share" } }, "submitActionLabel": "SUBMIT" }, "checkout": { "title": "Add your details", "submitActionLabel": "Continue" }, "registrationClosed": { "message": "Registration is closed", "exploreEventsActionLabel": "See other events" }, "ticketsUnavailable": { "message": "Tickets are not on sale", "exploreEventsActionLabel": "See other events" } } }, "summaries": { "rsvps": { "totalCount": 0, "yesCount": 0, "noCount": 0, "waitlistCount": 0 }, "tickets": { "ticketsSold": 0, "revenue": null, "currencyLocked": false, "totalOrders": 0, "totalSales": null } }, "instanceId": "1f6dc906-803d-4650-83f5-72ea1d88100b", "guestListSettings": { "displayedPublicly": true }, "userId": "8a8b9b73-4da8-47a5-8268-4396e68a0605", "feed": null, "onlineConferencing": { "enabled": false, "providerId": null, "providerName": "", "type": -1, "session": { "hostLink": "https://www.wixevents.com/oc?start=JWS.eyJraWQiOiJpb21iOUJ0eSIsImFsZyI6IkhTMjU2In0.eyJkYXRhIjoie1wiYWN0aW9uXCI6XCJzdGFydFwiLFwiaW5zdGFuY2VJZFwiOlwiMWY2ZGM5MDYtODAzZC00NjUwLTgzZjUtNzJlYTFkODgxMDBiXCIsXCJldmVudElkXCI6XCIxYTVmNDQ2My1lNDg0LTRkMDMtYjQwZi04NzgzYmYzYzE2ZmJcIn0iLCJpYXQiOjE2ODkxNjU3NTJ9.L25z74oVsP4ecIzfhYbRBlY4cDjUC5oCcH7FIL4vQ", "guestLink": "https://www.wixevents.com/oc?join=JWS.eyJraWQiOiJpb21iOUJ0eSIsImFsZyI6IkhTMjU2In0.eyJkYXRhIjoie1wiYWN0aW9uXCI6XCJqb2luXCIsXCJpbnN0YW5jZUlkXCI6XCIxZjZkYzkwNi04MDNkLTQ2NTAtODNmNS03MmVhMWQ4ODEwMGJcIixcImV2ZW50SWRcIjpcIjFhNWY0NDYzLWU0ODQtNGQwMy1iNDBmLTg3ODNiZjNjMTZmYlwifSIsImlhdCI6MTY4OTE2NTc1Mn0.Ss59KwdfawiLLTVE3G0zQqyjCbWMyVStUmVuQ2ic1OQ", "password": null, "sessionCreated": null, "sessionId": null } }, "seoSettings": null, "contactLabel": "custom.culinary-fusion-a-gastronomic-adventure-10-20-23-1", "agendaSettings": { "enabled": false, "pageUrl": { "base": "https://ievak9.wixsite.com/accessories", "path": "/schedule/culinary-fusion-a-gastronomic-adventure" } }, "categories": [ { "id": "bd964127-63ff-47e0-92af-8714037de8c9", "name": "food", "createdDate": "2023-07-12T12:40:57.129Z", "hidden": false, "type": "MANUAL" } ] } }
Errors
428Failed Precondition

There are 2 errors with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?