POST

Publish Draft


Publishes the draft form. Sets event registration form equal to contents of draft form.

Authentication

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

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

Path Params
eventIdstringRequired

Event ID.

Response Object
formForm

Published event form.

Publish Draft Example 1
Request
cURL
curl -X POST 'https://www.wixapis.com/events/v1/events/ad18d12e-a6a9-4c17-abfa-6ff119479be2/form/publish' \ -H 'Content-Type: application/json' \ -H 'Authorization: <AUTH TOKEN>'
Response
JSON
{ "form": { "controls": [ { "type": "NAME", "system": true, "name": "name", "inputs": [ { "name": "firstName", "array": false, "label": "First Name", "additionalLabels": {}, "options": [], "mandatory": true, "maxLength": 50, "type": "TEXT" }, { "name": "lastName", "array": false, "label": "Last Name", "additionalLabels": {}, "options": [], "mandatory": true, "maxLength": 50, "type": "TEXT" } ], "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": 50, "type": "TEXT" } ], "label": "Email", "orderIndex": 1, "id": "email" }, { "type": "INPUT", "system": false, "name": "phone-1a4acde6c958ff66", "inputs": [ { "name": "phone-1a4acde6c958ff66", "array": false, "label": "Work phone (line)", "additionalLabels": {}, "options": [], "mandatory": false, "maxLength": 25, "type": "TEXT" } ], "label": "Work phone (line)", "orderIndex": 2, "id": "phone-1a4acde6c958ff66" } ], "messages": { "rsvp": { "rsvpYesOption": "I will attend", "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 waiting list", "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": "Proceed" }, "registrationClosed": { "message": "Check our news page for updates.", "exploreEventsActionLabel": "See other events" } } } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

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