Update table by id
PUT/api/v2/tables/:table_id
Update a table by its id
Request
Path Parameters
Unique ID of the table
- application/json
Body
required
Human-friendly identifier of the table
Number of seats the table has
X position of the table in the floor plan
Y position of the table in the floor plan
Rotation of the table in the floor plan
Possible values: [round
, square
, rectangular
]
Shape of the table in the floor plan
ID of the floor plan to associate
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 500
- application/json
- Schema
- Example (from schema)
Schema
Unique ID of the table
ID of the floor plan that the table belongs to
Human-friendly identifier of the table
Number of seats the table has
X position of the table in the floor plan
Y position of the table in the floor plan
Rotation of the table in the floor plan
Possible values: [round
, square
, rectangular
]
Shape of the table in the floor plan
{
"id": "120c50ab-24ae-48f9-8860-ec0e9adea9ec",
"floor_plan_id": "762031eb-9c0f-4b22-919e-514b50f9613e",
"number": "Table 1",
"number_of_seats": 4,
"position_x": 100,
"position_y": 100,
"rotation": 0,
"shape": "round"
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
HTTP status code
Error message
Possible values: [query
, body
, response
, param
]
Where in the request the error occurred
errors
object[]
required
Possible values: non-empty
Path to the property with the error
constraints
object
required
Error message
{
"statusCode": 404,
"message": "Cannot find item",
"location": "query",
"errors": [
{
"path": "business.id",
"constraints": {
"object_required_property": "Required property"
}
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}