Last Updated on : 2023-06-21 07:12:53download
This topic describes the APIs of Add Seat.
Add a seat.
POST: /v1.0/iot-03/seats
| 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.
|
| Parameter name | Type | Description |
|---|---|---|
| result | String | Indicates whether the operation is successful. true: succeeded. false: failed. |
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"
}
{
"result": "1401799714281693184",
"t": 1623050071026,
"success": true
}
See Error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback