Publishes the draft form. Sets event registration form equal to contents of draft form.
You can only call this method when authenticated as a Wix app or Wix user identity.
Event ID.
Published event form.
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>'
{
"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"
}
}
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.