Skip to main content
PATCH
/
api
/
seat-types
/
{seat_type_id}
Update seat type
curl --request PATCH \
  --url https://tandem.hlofiys.xyz/api/seat-types/{seat_type_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "price": "99.90",
  "seat_color": "#4A90E2",
  "hall_id": 123
}
'
{
  "seat_type_id": 123,
  "name": "<string>",
  "price": "99.90",
  "seat_color": "#4A90E2",
  "hall_id": 123
}

Authorizations

Authorization
string
header
required

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

Path Parameters

seat_type_id
integer<int64>
required

Body

application/json
name
string

Seat type name

price
string

Cost of place. Passed as a string to preserve precision

Example:

"99.90"

seat_color
string

Color in 6-digit or 3-digit HEX format, starting with '#'

Example:

"#4A90E2"

hall_id
integer<int64>

Unique hall ID

Response

The seat type has been successfully updated

seat_type_id
integer<int64>
required

Unique seat type ID

name
string
required

Seat type name

price
string
required

Cost of place. Passed as a string to preserve precision

Example:

"99.90"

seat_color
string
required

Color in 6-digit or 3-digit HEX format, starting with '#'

Example:

"#4A90E2"

hall_id
integer<int64>
required

Unique hall ID