PATCH

Update Event


Updates an event.

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
PATCH
https://www.wixapis.com/events/v3/events/{event.id}

Path Params
event.idstringRequired

Event ID.

Body Params
eventEvent

Field values to be changed.


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

Updated event.

Update event
Request
cURL
curl -X PATCH 'https://www.wixapis.com/events/v3/events/1a5f4463-e484-4d03-b40f-8783bf3c16fb' \ -H 'Content-Type: application/json' \ -H 'Authorization: <AUTH TOKEN>' \ -d '{ "event": { "location": { "name": "Le Cordon Bleu Paris", "type": "VENUE", "address": { "country": "FR", "city": "Paris", "postalCode": "75015", "streetAddress": { "number": "13-15", "name": "Quai André Citroën", }, }, "dateAndTimeSettings": { "startDate": "2023-10-20T12:00:00Z", "endDate": "2023-10-22T16:00:00Z", "timeZoneId": "Europe/Paris", }, "title": "Culinary Fusion: A Gastronomic Adventure", "languageCode": "en", "registration": { "type": "TICKETING" } } "fieldmask": { "dateAndTimeSettings.startDate" }, "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 }, "addressLine_2": null, "formattedAddress": "13-15 Quai André Citroën, 75015 Paris, France", "hint": null, "geocode": { "latitude": 48.8483013, "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 }, "dateAndTime_settings": { "dateAndTimeTbd": false, "dateAndTimeTbdMessage": null, "startDate": "2023-10-20T12:00:00Z", "endDate": "2023-10-22T18:00:00Z", "timeZoneId": "Europe/Paris", "hideEndDate": false, "showTimeZone": false, "recurrenceStatus": "ONE_TIME", "recurringEvents": { "individualEventDates": [], "categoryId": null }, "formatted": { "dateAndTime": "20 October 2023 at 14:00 – 22 October 2023 at 20:00", "startDate": "20 October 2023", "startTime": "14:00", "endDate": "22 October 2023", "endTime": "20:00" } }, "title": "Culinary Fusion: A Gastronomic Adventure", "shortDescription": "", "mainImage": null, "slug": "culinary-fusion-a-gastronomic-adventure", "languageDode": "en", "createdDate": "2023-07-12T12:40:56.315Z", "updatedDate": "2023-07-13T12:27:06Z", "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=20231020T120000Z%2F20231022T180000Z&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+14%3A00+%E2%80%93+22+October+2023+at+20%3A00%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.eyJkYXRhIjoie1wiaW5zdGFuY2VJZFwiOlwiMWY2ZGM5MDYtODAzZC00NjUwLTgzZjUtNzJlYTFkODgxMDBiXCIsXCJldmVudElkXCI6e1widmFsdWVcIjpcIjFhNWY0NDYzLWU0ODQtNGQwMy1iNDBmLTg3ODNiZjNjMTZmYlwifSxcIm9jTGlua1wiOm51bGx9IiwiaWF0IjoxNjg5MjUxMjI3fQ.BcziROuZWVn52G6tbPQUAJqCeVBq3x7N9r7Hg5eC2-o" }, "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", "additional_labels": {}, "options": [], "mandatory": true, "maxLength": 50, "type": "TEXT", "maxSize": null, "defaultOptionSelection": null, "labels": [] }, { "name": "lastName", "array": false, "label": "Last name", "additional_labels": {}, "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", "additional_labels": {}, "options": [], "mandatory": true, "maxLength": 255, "type": "TEXT", "maxSize": null, "defaultOptionSelection": null, "labels": [] } ], "label": "Email", "orderIndex": 1, "id": "email" } ], "messages": { "rsvp": { "rsvp_yes_option": "I'm Going", "rsvp_no_option": "Not Going", "positive_messages": { "title": "Add your details", "confirmation": { "title": "Thank you!", "message": "An email with all the event info was sent to you.", "add_to_calendar_action_label": "Add to Calendar", "share_action_label": "Share" } }, "waitlist_messages": { "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.", "add_to_calendar_action_label": "Add to Calendar", "share_action_label": "Share" } }, "negative_messages": { "title": "Add your details", "confirmation": { "title": "Sorry You Can't Make It", "share_action_label": "Share" } }, "submit_action_label": "SUBMIT" }, "checkout": { "title": "Add your details", "submit_action_label": "Continue" }, "registration_closed": { "message": "Registration is closed", "explore_events_action_label": "See other events" }, "tickets_unavailable": { "message": "Tickets are not on sale", "explore_events_action_label": "See other events" } } }, "summaries": { "rsvps": { "total_count": 0, "yes_count": 0, "no_count": 0, "waitlist_count": 0 }, "tickets": { "tickets_sold": 0, "revenue": null, "currency_locked": false, "total_orders": 0, "total_sales": null } }, "instance_id": "1f6dc906-803d-4650-83f5-72ea1d88100b", "guest_list_settings": { "displayed_publicly": false }, "user_id": "8a8b9b73-4da8-47a5-8268-4396e68a0605", "feed": { "token": "{\"authorizerAppDefId\":\"140603ad-af8d-84a5-2c80-a0f60cb47351\",\"claims\":[\"wix.feed.FeedAccess\",\"wix.comments.CommentsAccess\",\"wix.reactions.ReactionsAccess\"],\"contextId\":\"1a5f4463-e484-4d03-b40f-8783bf3c16fb\",\"contextType\":\"events\"}" }, "online_conferencing": { "enabled": false, "provider_id": null, "provider_name": "", "type": -1, "session": { "host_link": "https://www.wixevents.com/oc?start=JWS.eyJraWQiOiJpb21iOUJ0eSIsImFsZyI6IkhTMjU2In0.eyJkYXRhIjoie1wiYWN0aW9uXCI6XCJzdGFydFwiLFwiaW5zdGFuY2VJZFwiOlwiMWY2ZGM5MDYtODAzZC00NjUwLTgzZjUtNzJlYTFkODgxMDBiXCIsXCJldmVudElkXCI6XCIxYTVmNDQ2My1lNDg0LTRkMDMtYjQwZi04NzgzYmYzYzE2ZmJcIn0iLCJpYXQiOjE2ODkyNTEyMjZ9.i2_mMKkGDII7tNoQAlszXFPpxWCOVgwiApra6gJqy74", "guest_link": "https://www.wixevents.com/oc?join=JWS.eyJraWQiOiJpb21iOUJ0eSIsImFsZyI6IkhTMjU2In0.eyJkYXRhIjoie1wiYWN0aW9uXCI6XCJqb2luXCIsXCJpbnN0YW5jZUlkXCI6XCIxZjZkYzkwNi04MDNkLTQ2NTAtODNmNS03MmVhMWQ4ODEwMGJcIixcImV2ZW50SWRcIjpcIjFhNWY0NDYzLWU0ODQtNGQwMy1iNDBmLTg3ODNiZjNjMTZmYlwifSIsImlhdCI6MTY4OTI1MTIyNn0.Pa35kTg9001cQPEGQsVaw45_Dcx7ivrgeML2HXQcALg", "password": null, "session_created": null, "session_id": null } }, "seo_settings": null, "contact_label": "custom.culinary-fusion-a-gastronomic-adventure-10-20-23-1", "agenda_settings": { "enabled": false, "page_url": { "base": "https://ievak9.wixsite.com/accessories", "path": "/schedule/culinary-fusion-a-gastronomic-adventure" } }, "categories": [ { "id": "bd964127-63ff-47e0-92af-8714037de8c9", "name": "food", "created_date": "2023-07-12T12:40:57.129Z", "hidden": false, "type": "MANUAL" } ] } }
Errors
400Invalid Argument

There are 2 errors with this status code.

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?