- Documentation
- Resource
- Authorize Asset
Authorize Asset¶
When a new asset on the EnOS is synchronized to the Application Portal, use this API to authorize the new asset to the asset creator.
Prerequisite¶
The associated application must have access permissions (authorized by the organization administrator) for the user and asset information.
Assets should be synchronized before authorizing assets.
Request Format¶
POST https://{apigw-address}/app-portal-service/v2.2/asset/append
Request Parameters (Body)¶
Name |
Mandatory/Optional |
Data Type |
Description |
---|---|---|---|
userId |
Mandatory |
String |
The user ID |
orgId |
Mandatory |
String |
The organization ID which the asset belongs to. How to get orgId >> |
assetIds |
Mandatory |
String |
The asset ID. Supports the query of multiple asset IDs, separated by commas. How to get assetId >> |
Response Parameters¶
Name |
Data Type |
Description |
---|---|---|
data |
Boolean |
|
Samples¶
Request Sample¶
url: https://{apigw-address}/app-portal-service/v2.2/user/asset/append
method: POST
requestBody:
{
"userId": "your_user_id",
"assetIds": [
"your_asset_id"
],
"orgId": "your_org_id"
}
Return Sample¶
{"code":0,"message":"","data":true}