> ## Documentation Index
> Fetch the complete documentation index at: https://api-docs.nowbookit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PATCH /Bookings/{bookingId}/updatetables

> Update the tables assigned to an existing booking.

Update the tables assigned to an existing booking.

<ParamField header="X-API-KEY" type="string" required>Your API key</ParamField>
<ParamField header="Content-Type" type="string" required>Must be `application/json`</ParamField>

<ParamField path="bookingId" type="string" required>The NowBookIt Booking ID to update</ParamField>

<ParamField body="tables" type="array" required>List of table objects to assign. Each object requires `name` (string) — table name as in NowBookIt, and `section` (string) — section name.</ParamField>
<ParamField body="allowTableBookingConflict" type="boolean">Allow assigning tables that are already booked. Default: `false`.</ParamField>

<Note>Use `GET /Bookings/tables` to retrieve available table names and section names.</Note>

<CodeGroup>
  ```shell curl theme={null}
  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 }'
  ```
</CodeGroup>

| Status | Description                                 |
| ------ | ------------------------------------------- |
| `200`  | Tables updated                              |
| `400`  | ModelState validation errors                |
| `400`  | API key not associated with a venue         |
| `400`  | `No tables provided`                        |
| `400`  | `{tables} contains duplicate table entries` |
| `400`  | `No Venue Subscribed to your App.`          |
| `400`  | Result error message from NowBookIt         |
| `401`  | X-API-KEY missing or invalid                |
| `500`  | Internal server error                       |


## OpenAPI

````yaml PATCH /Bookings/{bookingId}/updatetables
openapi: 3.0.4
info:
  title: NowBookIt IPOS Partner API
  description: >-
    REST API for integrating your POS or external system with NowBookIt's
    reservation, sales, and gift card platform.
  version: v1
  contact:
    email: platform.integrations@nowbookit.com
servers:
  - url: https://ipos.dev.nowbookit.com
    description: Development
  - url: https://ipos.nowbookit.com
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /Bookings/{bookingId}/updatetables:
    patch:
      tags:
        - Bookings
      summary: Update Booking Tables
      operationId: updateBookingTables
      parameters:
        - name: bookingId
          in: path
          required: true
          schema:
            type: string
        - name: X-API-KEY
          in: header
          description: API Key authentication header
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateBookingTableRequest'
      responses:
        '200':
          description: Update Booking Tables from POS
        '400':
          description: Returns 400 BadRequest when passed invalid parameters
        '404':
          description: Returns 404 Not Found when trying to find Booking from NBI.
        '500':
          description: An error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    UpdateBookingTableRequest:
      required:
        - allowTableBookingConflict
        - tables
      type: object
      properties:
        tables:
          type: array
          items:
            $ref: '#/components/schemas/TableRequest'
          description: The Venue Booking Table List
        allowTableBookingConflict:
          type: boolean
          description: Allow table booking conflicts
      additionalProperties: false
    ProblemDetails:
      type: object
      properties:
        type:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        status:
          type: integer
          format: int32
          nullable: true
        detail:
          type: string
          nullable: true
        instance:
          type: string
          nullable: true
      additionalProperties: {}
    TableRequest:
      required:
        - name
      type: object
      properties:
        name:
          minLength: 1
          type: string
          description: The Venue Booking Table name
        section:
          type: string
          description: The Venue Section Name
          nullable: true
      additionalProperties: false
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY

````