Add Assets

Last Updated on : 2021-07-16 07:46:08download

Add assets.

API address

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

Request parameter

Description of body

Parameter name Type IN Required Description
asset_name String false The asset name.
parent_asset_id String false The ID of the parent asset.
asset_image String false The asset image.
asset_type String false The asset type.

Return parameter

Parameter name Type Description
result String The asset ID.

Request example

POST: /v1.0/iot-03/assets
{ "asset_name": "Park 01", "parent_asset_id": "", "asset_image": "image123", "asset_type": "park" }

Return example

{ "result": "hquwheiqu123", "t": 1624069713536, "success": true }

Error code

For more information, see error code.