Add Seat

Last Updated on : 2023-06-21 07:12:53download

This topic describes the APIs of Add Seat.

API description

Add a seat.

API address

POST: /v1.0/iot-03/seats

Request parameter

Parameter name Type IN Required Description
req SeatAddReq body true The request parameter of adding a seat.

Description of req

Parameter name Type IN Required Description
seat_no String false The seat number.
remark String false Seat introduction.
area_id String false The area ID.
type String false The seat type.
device_categories List false The list of device types.
image_url String false The seat image.
status String false Indicates the status of a seat.
  • disable: The seat is disabled.
  • enable: The seat is enabled.
  • repairing: The seat is being repaired.

Return parameter

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

Request example

POST: /v1.0/iot-03/seats
{ "seat_no": "seat10_new", "area_id": "1394999880337850368", "type": "shared", "device_categories": [ "pm2.5" ], "image_url": "23", "status": "enable", "remark": "Seat introduction" }

Return example

{ "result": "1401799714281693184", "t": 1623050071026, "success": true }

Error code

See Error code.