> 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: reserveReservation(reservationId: string, reservee: Reservee, revision: string)

# Method package: wixTableReservationsV2

# Method menu location: wixTableReservationsV2 --> reservations --> reserveReservation

# Method Link: https://dev.wix.com/docs/velo/apis/wix-table-reservations-v2/reservations/reserve-reservation.md

# Method Description:

Reserves or requests a held reservation.

Held reservations are temporary reservations with the `HELD` status created by `createHeldReservation()`.

They are intended to reserve seats and tables for a party in a selected time slot while they enter further reservation details, such as names and contact information. Reservations with the `HELD` status are only valid for 10 minutes. Trying to call `Reserve Reservation` with a held reservation older than 10 minutes returns an error.

`Reserve Reservation` changes a reservation's `HELD` status to:
* `RESERVED` if the reservation's reservation location does not require manual approval.
* `REQUESTED` if the reservation's reservation location requires manual approval.



# Method Code Examples:

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

## Reserve a held reservation (frontend) 

```javascript
import { reservations } from 'wix-table-reservations-v2';

/* Sample reservationId value: "1631633f-ab4b-4302-ab7a-26427bee4d37"
 *
 * Sample reservee value: {
 *   "firstName": "John",
 *   "phone": "+972555555555",
 *   "contactId": "e8396cd4-1398-4886-a0ca-82647ff0ccaf"
 * };
 * 
 * Sample revision value: 2
 */

reservations.reserveReservation(reservationId, reservee, revision)
  .then((reservedReservation) => {
    const id = reservedReservation._id;
    const status = reservedReservation.status;

    console.log('Success! Reserved a held reservation:', reservedReservation);
    return reservedReservation;
  })
  .catch((error) => {
    console.error(error);
    // Handle the error
  });

/* Promise resolves to:
 * {
 *   "reservation": {
 *     "status": "RESERVED",
 *     "source": "UNKNOWN",
 *     "details": {
 *       "reservationLocationId": "fab8cc1f-31cf-462f-b5bb-392594624bf2",
 *       "tableIds": [],
 *       "startDate": "2024-12-09T15:30:00.000Z",
 *       "endDate": "2024-12-09T17:00:00.000Z",
 *       "partySize": 2
 *     },
 *     "revision": "2",
 *     "migrationNotes": [],
 *     "tablesWithReservationConflicts": [],
 *     "_id": "1631633f-ab4b-4302-ab7a-26427bee4d37",
 *     "_createdDate": "2024-01-17T10:20:09.332Z"
 *   }
 * }
 */
```

---