Edit Seat Status

Last Updated on : 2023-06-15 05:47:27

Edit the status of a specified seat, including disabled, enabled, and under maintenance.

API address

PUT: /v1.0/iot-03/seats/{seat_id}/status

Request parameter

Parameter name Type IN Required Description
seat_id String uri true The seat ID.

Description of body

Parameter name Type IN Required Description
status String true Indicates the status of a seat. Valid values:
  • disable: The seat is disabled.
  • enable: The seat is enabled.
  • repairing: The seat is being repaired.

Return parameter

Parameter name Type Description
result Boolean Indicates whether the operation is successful. Valid values: true: succeeded. false: failed.

Request example

PUT: /v1.0/iot-03/seats/{seat_id}/status
{ "status": "enable" }

Return example

{ "result": true, "t": 1623050759107, "success": true }

Error code

For more information, see error code.