Skip to main content
PATCH
/
Bookings
/
{bookingId}
/
updatetables
PATCH /Bookings/{bookingId}/updatetables
curl --request PATCH \
  --url https://{base_url}/Bookings/{bookingId}/updatetables \
  --header 'Content-Type: <content-type>' \
  --header 'X-API-KEY: <x-api-key>' \
  --data '
{
  "tables": [
    {}
  ],
  "allowTableBookingConflict": true
}
'
Update the tables assigned to an existing booking.
X-API-KEY
string
required
Your API key
Content-Type
string
required
Must be application/json
bookingId
string
required
The NowBookIt Booking ID to update
tables
array
required
List of table objects to assign. Each object requires name (string) — table name as in NowBookIt, and section (string) — section name.
allowTableBookingConflict
boolean
Allow assigning tables that are already booked. Default: false.
Use GET /Bookings/tables to retrieve available table names and section names.
curl --location --request PATCH '[BASE_URL]/Bookings/{bookingId}/updatetables' \
--header 'X-API-KEY: your_api_key_here' \
--header 'Content-Type: application/json' \
--data '{ "tables": [{ "name": "Table 5", "section": "Main" }], "allowTableBookingConflict": false }'
StatusDescription
200Tables updated
400ModelState validation errors
400loggedInAppId
400No tables provided
400{tables} contains duplicate table entries
400No Venue Subscribed to your App.
400Result error message from NowBookIt
401X-API-KEY missing or invalid
500Internal server error