PATCH

Update Reservation Location


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Updates a reservation location. Supports partial updates.

Each time the reservation location is updated, revision increments by 1. The existing revision must be included when updating the reservation location. This ensures you're working with the latest reservation location information, and it prevents unintended overwrites.

You cannot use this method to change a reservation location's location object. Attempting to do so will cause the server to return an application error.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Reservation Locations
Manage Restaurants - all permissions
Learn more about app permissions.
Endpoint
PATCH
https://www.wixapis.com/table-reservations/reservation-locations/v1/reservation-locations/{reservationLocation.id}

Path Params
reservationLocation.idstringRequired

Reservation location ID.

Body Params
reservationLocationReservationLocationRequired

ReservationLocation to be updated, may be partial.

Response Object
reservationLocationReservationLocation

The updated reservation location.

Update a reservation location
Request
cURL
curl -X PATCH 'https://www.wixapis.com/table-reservations/reservation-locations/v1/reservation-locations/7b0221b9-a14a-48a3-a71c-f0d3b5d2b1ae' \ -H 'Authorization: <AUTH>' \ --data-binary '{ "reservation_location": { "id": "28bca9ee-e5b9-4081-9f45-a6dded8593a1", "revision": "2", "configuration": { "online_reservations": { "partySize": { "min": 1, "max": 20 } } } } }'
Response
JSON
{ "reservationLocation": { "id": "28bca9ee-e5b9-4081-9f45-a6dded8593a1", "revision": "3", "createdDate": "2022-10-20T13:28:33.106Z", "updatedDate": "2023-04-06T12:25:41.555Z", "location": { "id": "56d8ab44-7555-4324-95dc-36b5371a8ffe" }, "configuration": { "onlineReservations": { "seatPacing": { "number": 5, "enabled": true }, "partyPacing": { "number": 2, "enabled": true }, "partySize": { "min": 1, "max": 20 }, "minimumReservationNotice": { "number": 30, "unit": "MINUTES" }, "defaultTurnoverTime": 90, "turnoverTimeRules": [ { "seatsMin": 12, "seatsMax": 17, "minutes": 10 } ], "businessSchedule": { "periods": [ { "openDay": "SUNDAY", "openTime": "09:00", "closeDay": "SUNDAY", "closeTime": "18:00" }, { "openDay": "MONDAY", "openTime": "09:00", "closeDay": "MONDAY", "closeTime": "18:00" }, { "openDay": "WEDNESDAY", "openTime": "09:00", "closeDay": "WEDNESDAY", "closeTime": "18:00" }, { "openDay": "FRIDAY", "openTime": "09:00", "closeDay": "FRIDAY", "closeTime": "18:00" }, { "openDay": "SATURDAY", "openTime": "09:00", "closeDay": "SATURDAY", "closeTime": "18:00" } ], "specialHourPeriod": [] }, "onlineReservationsEnabled": true }, "reservationForm": { "customFieldDefinitions": [ { "id": "2f84023b-1a1b-4311-8951-da19a23c4b10", "name": "Allergies", "required": false }, { "id": "fa69341c-de2b-4287-ae61-249403785f60", "name": "Vegetarian", "required": true } ] }, "myReservationsFields": [ { "fieldType": "TABLE", "shown": true }, { "fieldType": "START_DATE", "shown": true }, { "fieldType": "END_DATE", "shown": true }, { "fieldType": "CREATED_DATE", "shown": true }, { "fieldType": "UPDATED_DATE", "shown": true }, { "fieldType": "PARTY_SIZE", "shown": true }, { "fieldType": "FIRST_NAME", "shown": true }, { "fieldType": "LAST_NAME", "shown": true }, { "fieldType": "EMAIL", "shown": true }, { "fieldType": "PHONE", "shown": true }, { "fieldType": "ADDITIONAL_INFO", "shown": true }, { "fieldType": "TEAM_MESSAGE", "shown": true }, { "fieldType": "CUSTOM_FIELD", "customFieldId": "2f84023b-1a1b-4311-8951-da19a23c4b10", "shown": false }, { "fieldType": "CUSTOM_FIELD", "customFieldId": "fa69341c-de2b-4287-ae61-249403785f60", "shown": false } ], "tableManagement": { "tableDefinitions": [ { "id": "c215fb2a-0eb9-43d9-b7a7-8957e24c66e7", "name": "Small table", "seatsMin": 2, "seatsMax": 4, "isActive": false }, { "id": "32d26bf5-05ae-463b-b37a-596cd6263375", "name": "Medium table", "seatsMin": 2, "seatsMax": 6, "isActive": true }, { "id": "fccb04df-d22d-4832-ad34-2ac99d7a54e5", "name": "Big table", "seatsMin": 5, "seatsMax": 8, "isActive": true } ], "deletedTableDefinitions": [ { "id": "f737be7b-b75e-444e-a250-276234ad522d", "name": "Table", "seatsMin": 2, "seatsMax": 5, "isActive": true } ], "tableCombinations": [] } }, "default": true, "archived": false } }
Errors
400Invalid Argument

There is 1 error 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?