Update Asset Tree

Update the asset tree information.

Operation Permissions

Required Authorization Required Operation Permission
Asset Tree Service Full Access

Request Format

POST https://{apigw-address}/asset-tree-service/v2.1/asset-trees?action=update

Request Parameters (URI)

Name Location (Path/Query) Required or Not Data Type Description
orgId Query true String Organization ID which the asset belongs to. How to get orgId>>

Request Parameters (Body)

Name Required or Not Data Type Description
treeUpdateInfo true TreeUpdateVo struct Updated details to be provided when updating an asset tree. See TreeUpdateVo struct.

TreeUpdateVo Struct

Name Required or Not Data Type Description
treeId true String Asset tree ID
name true StringI18n Asset tree name that supports internationalization. For the structure, see Internationalized name struct>>
tags false Tag struct User-customized tags. For details, see How to use tag>>

Sample 1

Request Sample

POST https://apigw-address/asset-tree-service/v2.1
/asset-trees?action=update&orgId=yourOrgId
{
"treeUpdateInfo":{
    "treeId": "H4yVDl2U",
    "name": {
        "defaultValue": "aaaa"
    },
    "tags":{
        "ss":"f"
    }
}
}

Return Sample

{
  "code": 0,
  "msg": "OK",
  "requestId": "01b5477a-374e-49a0-8b68-7dbfe8f0b74f",
  "data": null
}