> 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`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: Sample Use Cases and Flows ## Article: Sample Use Cases and Flows ## Article Link: https://dev.wix.com/docs/api-reference/business-solutions/events/registration/rsvp-v2/sample-use-cases-and-flows.md ## Article Content: # RSVP V2: Sample Use Cases & Flows This article presents possible use cases and corresponding sample flows that you can support. It provides a useful starting point as you plan your implementation. ## Automatically remove guests from a waitlist when additional spots are available This use case demonstrates how to automate the process of changing a guest's status from `WAITLIST` to `YES` when additional spots become available in an event. For example, when the guest limit is increased, you can use [Event Updated](https://dev.wix.com/docs/api-reference/business-solutions/events/event-management/events-v3/event-updated.md) to detect this change and access RSVP data for that event. Use the RSVP API to update the RSVP status and remove guests from the waitlist. Additionally, you can send automated emails to notify guests about the update. To change the guest status and send update emails, follow these steps: 1. On an ongoing basis, use [Event Updated](https://dev.wix.com/docs/api-reference/business-solutions/events/event-management/events-v3/event-updated.md) to listen for changes to an event. 1. When triggered, retrieve the following values: - `updatedEvent.currentEntity.registration.rsvp.limit` - `updatedEvent.currentEntity.registration.rsvp.waitlistEnabled` - `updatedEvent.currentEntity.summaries.rsvps.yesCount` If `waitlistEnabled` is `true`, calculate the number of available spots by subtracting `yesCount` from `limit`. Save this number. 1. Call [Search RSVPs](https://dev.wix.com/docs/api-reference/business-solutions/events/registration/rsvp-v2/search-rsvps.md) by `eventId` and `WAITLIST` status. Sort results by the `createdDate` field in ascending order. Compare the saved number of available spots to the `totalGuests` field of the RSVP: - If the numbers match, update the RSVP status to `YES` with [Update RSVP](https://dev.wix.com/docs/api-reference/business-solutions/events/registration/rsvp-v2/update-rsvp.md). - If the numbers don't match, wait for additional spots to become available. 1. On an ongoing basis, use [RSVP Updated](https://dev.wix.com/docs/api-reference/business-solutions/events/registration/rsvp-v2/rsvp-updated.md) to listen for changes. 1. When RSVP Updated is triggered for the RSVP, send an email to the guest from your marketing tool.