> 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 # 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" * } * } */ ``` ---