With the Wix Events v2 API you can create and manage events on your site. This API can be used to create sites for concerts, sport camps, city tours, weddings, and so on.
The Wix Events v2 API allows you to:
These registration types define what type of event they are registering for:
When defining an event, the event must have a date and time. The event can be either single, or recurring:
The event can happen in:
To create a description for an event you have to use rich content. The following flow describes how to use the Rich Content API to add a description to an event.
Save the created event ID.
Generate the content you want to include using the Rich Content playground. For example:
{
"nodes": [
{
"type": "PARAGRAPH",
"id": "d40ny127",
"nodes": [
{
"type": "TEXT",
"id": "",
"textData": {
"text": "Checkout out the concert from a previous year:"
}
}
]
},
{
"type": "VIDEO",
"id": "12k6s126",
"videoData": {
"containerData": {
"width": {
"size": "CONTENT"
},
"alignment": "CENTER",
"textWrap": true
},
"video": {
"src": {
"url": "https://www.youtube.com/watch?v=Fpn1imb9qZg"
},
"duration": 289
}
}
},
{
"type": "PARAGRAPH",
"id": "9822l128"
}
]
}
Copy the generated document.
Call Create Rich Content passing the document together with the event ID where the description should be applied. The description will automatically be populated with the provided rich content document.
registration.type
of either RSVP
or TICKETING
, which is the same as the registration.initialType
property (this property remains unchanged).registration.external.url
field. After doing this, the registration type becomes EXTERNAL
, and directs guests to the specified external URL for registration. The existing guest list, originally managed by the Events API, still exists but no longer is maintained by the API. Make sure to manage the guest list from the external platform.registration.registrationDisabled
property to true
. After doing this, the registration.type
value becomes NONE
.