Get Asset Structure

Get the upstream organizational structure of the organizational structure in which the asset is located.

Request Format

GET https://{apigw-address}/app-portal-service/v2.1/asset/structure

Request Parameters (Header)

Name

Required or Not

Data Type

Description

Authorization

true

String

Access Token, represented as Bearer Token. Refer to Log In or Refresh Access Token to learn how to get Access Token.

Response Parameters

Name

Data Type

Description

data

data struct

Organizational structure

data Struct

Name

Data Type

Description

structures

AssetStructure struct

List of the organizational structure tree

AssetStructure Struct

Name

Data Type

Description

id

String

Organizational structure ID

name

String

Organizational structure name

description

String

Organizational description

orgId

String

The organizational ID where the organizational structure is located

children

AssetStructure struct

The sub-organizational structure

Sample

Request Sample

GET
https://{apigw-address}/app-portal-service/v2.1/asset/structure
headers: {"Authorization":"Bearer APP_PORTAL_S_TDKKeqfYBK3m5z3LRgKVqThWDYnRBN44"}

Return Sample

{
  "code": 200,
  "data": {
    "structures": [
      {
        "children": [],
        "description": "",
        "displayName": "wyf",
        "id": "sg15645784491861",
        "name": "wyf",
        "orgId": "yourOrgId"
      }
    ]
  },
  "message": ""
}