Skip to main content
PATCH
/
api
/
halls
/
{hall_id}
/
seats
Massive renewal of seats in the hall
curl --request PATCH \
  --url https://tandem.hlofiys.xyz/api/halls/{hall_id}/seats \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "seat_id": 101,
    "seat_type_id": 2
  },
  {
    "seat_id": 102,
    "x_coordinate": 35.5,
    "y_coordinate": 20
  }
]
'
[
  {
    "seat_id": 123,
    "row_label": "12",
    "seat_label": "7",
    "x_coordinate": 0,
    "y_coordinate": 0,
    "seat_type_id": 123,
    "hall_id": 123
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

hall_id
integer<int64>
required

Body

application/json
seat_id
integer<int64>

Unique seat ID

row_label
string

Row label (e.g. '1', 'A', 'Parterre')

Example:

"12"

seat_label
string

Place label in a row (for example, '5', '10', 'VIP 1')

Example:

"7"

x_coordinate
number<double>
default:0

X coordinate to display on the diagram

y_coordinate
number<double>
default:0

Y coordinate to display on the diagram

seat_type_id
integer<int64>

Unique seat type ID

Response

Seats have been successfully updated. An array of updated objects is returned

seat_id
integer<int64>
required

Unique seat ID

row_label
string
required

Row label (e.g. '1', 'A', 'Parterre')

Example:

"12"

seat_label
string
required

Place label in a row (for example, '5', '10', 'VIP 1')

Example:

"7"

x_coordinate
number<double>
default:0
required

X coordinate to display on the diagram

y_coordinate
number<double>
default:0
required

Y coordinate to display on the diagram

seat_type_id
integer<int64>
required

Unique seat type ID

hall_id
integer<int64>
required

Unique hall ID