Skip to main content

Create a new table

POST 

https://api.staging.powerapi.com/api/v2/tables

Create a new table and link it to a floor plan

Request

Body

required

    number stringrequired

    Human-friendly identifier of the table

    number_of_seats integerrequired

    Number of seats the table has

    position_x number

    X position of the table in the floor plan

    position_y number

    Y position of the table in the floor plan

    rotation number

    Rotation of the table in the floor plan

    shape string

    Possible values: [round, square, rectangular]

    Shape of the table in the floor plan

    floor_plan_id uuidrequired

    ID of the floor plan to associate

Responses

Schema

    id uuidrequired

    Unique ID of the table

    floor_plan_id uuidnullable

    ID of the floor plan that the table belongs to

    number stringrequired

    Human-friendly identifier of the table

    number_of_seats integerrequired

    Number of seats the table has

    position_x numberrequired

    X position of the table in the floor plan

    position_y numberrequired

    Y position of the table in the floor plan

    rotation numberrequired

    Rotation of the table in the floor plan

    shape stringrequired

    Possible values: [round, square, rectangular]

    Shape of the table in the floor plan

curl -L 'https://api.staging.powerapi.com/api/v2/tables' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"number": "Table 1",
"number_of_seats": 4,
"position_x": 100,
"position_y": 100,
"rotation": 0,
"shape": "round",
"floor_plan_id": "762031eb-9c0f-4b22-919e-514b50f9613e"
}'
Request Collapse all
Base URL
https://api.staging.powerapi.com
Auth
Body required
{
  "number": "Table 1",
  "number_of_seats": 4,
  "position_x": 100,
  "position_y": 100,
  "rotation": 0,
  "shape": "round",
  "floor_plan_id": "762031eb-9c0f-4b22-919e-514b50f9613e"
}
ResponseClear

Click the Send API Request button above and see the response here!