> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# Method name: onRsvpUpdated(event: RsvpUpdatedEvent)

# Method package: wixEventsBackend

# Method menu location: wixEventsBackend --> Events --> onRsvpUpdated

# Method Link: https://dev.wix.com/docs/velo/apis/wix-events-backend/events/on-rsvp-updated.md

# Method Description:

A backend event that fires when an RSVP is updated.

The `onRsvpUpdated()` event handler runs when an RSVP is updated.
 The received `RsvpUpdatedEvent` object contains information about the updated RSVP.

> **Note:** Backend events are **not** fired when previewing your site.



# Method Code Examples:

*** Note: do not assume any prop names or enum values other than the ones in the example.

## A backend event that occurs when an RSVP is updated

```javascript
// Place this code in the events.js file
// of your site's Backend section.
// Add the file if it doesn't exist.

export function wixEvents_onRsvpUpdated(event) {
    let eventId = event.eventId;
    let rsvpId = event.rsvpId;
    let status = event.status;

    let firstName = event.firstName;
    let lastName = event.lastName;
    let email = event.email;
}


/*  Full event object:
 *  {
 *    "timestamp": "2020-04-27T13:37:22.444Z",
 *    "eventId": "0adc383d-db6b-4c4a-8fb8-5fe77c6569bb",
 *    "rsvpId": "4160c868-35b8-49f3-bff2-9d3912be9c0a",
 *    "status": "YES",
 *    "contactId": "2b1df22d-cfcf-447e-9afe-27b782aecd8c",
 *    "memberId": "c2b48f6f-5964-46ad-9888-1e9d3f81b83b",
 *    "created": "2020-04-27T12:37:22.444Z",
 *    "firstName": "John",
 *    "lastName": "Doe",
 *    "email": "john.doe@somedomain.com",
 *    "rsvpForm": {
 *      "inputValues": [
 *        {
 *          "inputName": "email",
 *          "value": "john.doe@somedomain.com",
 *          "values": []
 *        },
 *        {
 *          "inputName": "lastName",
 *          "value": "Doe",
 *          "values": []
 *        },
 *        {
 *          "inputName": "firstName",
 *          "value": "John",
 *          "values": []
 *        },
 *        {
 *          "inputName": "date",
 *          "value": "2020-04-27",
 *          "values": []
 *        },
 *        {
 *          "inputName": "additionalGuests",
 *          "value": "2",
 *          "values": []
 *        },
 *        {
 *          "inputName": "guestNames",
 *          "value": "",
 *          "values": [
 *            "Jane Doe",
 *            "Baby Doe"
 *          ]
 *        },
 *        {
 *          "inputName": "comment",
 *          "value": "A comment",
 *          "values": []
 *        },
 *        {
 *          "inputName": "custom",
 *          "value": "Another comment",
 *          "values": []
 *        },
 *        {
 *          "inputName": "address",
 *          "value": "",
 *          "values": [
 *            "Wix Playground, 100 Gansevoort St, New York, NY 10014, USA"
 *          ]
 *        },
 *        {
 *          "inputName": "phone",
 *          "value": "(555) 555-1234",
 *          "values": []
 *        }
 *      ]
 *    },
 *    "guests": [
 *      {
 *        "index": 0,
 *        "fullName": "John Doe",
 *        "id": 1
 *      },
 *      {
 *        "index": 1,
 *        "fullName": "Jane Doe",
 *        "id": 2
 *      },
 *      {
 *        "index": 2,
 *        "fullName": "Baby Doe",
 *        "id": 3
 *      }
 *    ]
 *  }
 */
```

---