Authorize Asset

When a new asset on the EnOS Cloud is synchronized to the Application Portal, use the asset authorization interface of Application Portal to authorize the new asset to the asset creator.

Request Format

POST https://{apigw-address}/app-portal-service/v2.0/asset/append

Request Parameters (Body)

Name Required or Not Data Type Description
userId true String User ID
orgId true String Organization ID which the asset belongs to. How to get orgId >>
assetIds true String Asset ID, which supports querying multiple assets; multiple asset IDs are separated by commas. How to get assetId >>

Response Parameters

Name Data Type Description
data Boolean null

Sample

Request Sample

POST
https://alpha-apim-cn4.eniot.io/app-portal-service/v2.0/user/asset/append

requestBody:

{
  "userId": "u15578231118721",
  "assetIds": [
    "H77kS15O"
  ],
  "orgId": "yourOrgId"
}

Return Sample

{"code":200,"message":"","data":true}