Assign Assets to Organization Structure


Assign assets to Organization structure nodes.

Request Format


POST https://{apigw-address}/app-portal-service/v2.3/structure/asset/assign

Request Parameters (Query)


Name

Mandatory/Optional

Data Type

Description

orgId

Mandatory

String

OU ID

Request Parameters (Body)


Name

Mandatory/Optional

Data Type

Description

structureId

Mandatory

String

Organization structure node ID.

assetIds

Mandatory

List <string>

The asset ID to be assigned.

Response Parameters


Name

Data Type

Description

data

boolean

True for assigned, false for failed to assign.

Error Codes


Samples

Request Sample


url: https://{apigw-address}/app-portal-service/v2.3/structure/asset/assign
method: POST

requestBody:
{
    "structureId": "your_structure_ID",
    "assetIds": ["your_asset_id_1", "your_asset_id_2"]
}

Return Sample


{
  "code": 0,
  "data": true,
  "message": "OK"
}