Create/Update Device Type

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

Create or update the device type settings by entering the device category code and device type name. When you create or update the type settings, import the full list of device types. A maximum of 50 device types can be imported.

API address

POST: /v1.0/iot-03/seat-reservations/device-settings

Request parameter

Description of body

Parameter name Type IN Required Description
device_categories List true The device type.

Description of device_categories

Parameter name Type IN Required Description
device_category_code String true The code of a specified device type.
device_category_name String true The name of a specified device category.

Return parameter

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

Request example

POST: /v1.0/iot-03/seat-reservations/device-settings
{ "device_categories": [ { "device_category_code": "cz", "device_category_name": "Socket" }, { "device_category_code": "pm2.5", "device_category_name": "pm2.5" } ] }

Return example

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

Error code

For more information, see error code.