# Create table

This endpoint is used to create a table within Tyro Connect.

The id that is returned as a part of the response should be used to identify the table for subsequent events or retrieving the details.

Endpoint: POST /tables
Version: 1.0
Security: JWT

## Header parameters:

  - `Authorization` (string, required)

  - `Content-Type` (string, required)
    Enum: "application/json"

## Request fields (application/json):

  - `number` (string, required)
    This value must be unique and represents the table number or table id. This field accepts alphanumeric characters e.g MAIN-33.
    Example: "MAIN-33"

  - `locationId` (string, required)
    The id of the location as specified by the Tyro Connect system

  - `section` (object)
    The section within the venue

  - `section.id` (string)
    The POS system's Id of the section

  - `section.name` (string)
    The readable name of the section. E.g. Front bar, drive through for hospitality or for retail men's clothes, women's shoes etc

## Response 201 fields (application/json):

  - `id` (string, required)
    The id of the table in the Tyro Connect system
    Example: "0f448ac1-862a-4c7b-bdb4-a3b7cdbf6149"

  - `number` (string, required)
    This value must be unique and represents the table number or table id. This field accepts alphanumeric characters e.g MAIN-33
    Example: "MAIN-33"

  - `locationId` (string, required)
    The id of the location as specified by the Tyro Connect system

  - `section` (object)
    The section within the venue

  - `openSales` (array, required)
    A list of sale ids that are open in the Tyro Connect system attached to the table.

## Response 400 fields (application/json):

  - `error` (string)
    The validation error message.


## Response 403 fields
