Add Assets

Last Updated on : 2023-06-15 04:49:47

Add assets.

API address

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

Request parameter

Description of body

Parameter nameTypeINRequiredDescription
nameString trueThe asset name.
meta_idString falseThe ID of the metadata. It is also the ID of the node storage description.
parent_asset_idString falseThe ID of the parent asset.

Return parameter

Parameter nameTypeDescription
resultStringThe asset ID.

Request example

POST: /v1.0/iot-02/assets
{ "name": "Hangzhou No. 1 Warehouse" }

Return example

{
    "result": "1374932xxxx562112",
    "t": 1616644441044,
    "success": true
}

Error code

For more information, see error code.