Modify Asset

Last Updated on : 2023-06-15 05:49:57

Edit the asset name and image information.

API address

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

Request parameter

Parameter name Type IN Required Description
asset_id String uri true The ID of a specified asset.

Description of body

Parameter name Type IN Required Description
asset_name String false The name of a specified asset, with no more than 40 characters.
parent_asset_id String false The name of the parent asset, with no more than 40 characters.
asset_image String false The image of a specified asset, with no more than 200 characters.
asset_type String false The type of a specified asset. Valid values:
  • park: a park.
  • building: a building.
  • floor: a floor.
  • room: a space.

Return parameter

Parameter name Type Description
result Boolean Indicates whether the operation is successful.

Request example

PUT: /v1.0/iot-03/assets/139716370579954****
{ "asset_name": "zichan022222", "parent_asset_id": "", "asset_image": "image00020123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789", "asset_type": "building" }

Return example

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

Error code

For more information, see error code.