Edit Seat

Last Updated on : 2023-06-21 07:13:03download

This topic describes the APIs of Edit Seat.

API description

Edit the information about a specified seat.

API address

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

Request parameter

Parameter name Type IN Required Description
seat_id String uri true The seat ID.
req SeatModifyReq body true The request of editing a specific seat.

Description of req

Parameter name Type IN Required Description
seat_no String false The seat number.
remark String false Seat introduction.
type String false The seat type.
device_categories List false The list of device types that are bound with the seat.
image_url String false The seat image.
status String false The status of a specified seat.

Return parameter

Parameter name Type Description
result Boolean The result of editing a specified seat.

Request example

PUT: /v1.0/iot-03/seats/1401807768616247xxx
{ "seat_no": "hula32", "remark": "Test of seat editing", "device_categories": [ "cz" ], "type": "fixed", "image_url": "www.tuya.com", "status": "enable" }

Return example

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

Error code

See Error code.