Modify an Asset

Last Updated on : 2023-06-20 14:18:21download

Modify an asset.

API address

PUT: /v1.0/iot-02/assets/{asset_id}

Request parameter

Parameter nameTypeINRequiredDescription
asset_idStringuritrueThe asset ID.

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.

Return parameter

Parameter nameTypeDescription
resultBooleantrue: succeeded. false: failed.

Request example

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

Return example

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

Error code

For more information, see error code.