- Documentation
- Asset
- 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://alpha-apim-cn4.eniot.io/app-portal-service/v2.2/user/asset/append
method: POST
requestBody:
{
"userId": "yourUserId",
"assetIds": [
"H77kS15O"
],
"orgId": "yourOrgId"
}
Return Sample¶
{"code":0,"message":"","data":true}