Check Asset Permission¶
Check if the current user has the access permission for the queried asset.
Request Parameters (Header)¶
Name | Mandatory/Optional | Data Type | Description |
---|---|---|---|
Authorization | Mandatory | String | The access token (or bearer token). The format of the parameter’s string is Bearer {your token}. Refer to Log In or Refresh Access Token to learn how to get the access token. |
Request Parameters (Body)¶
Name | Mandatory/Optional | Data Type | Description |
---|---|---|---|
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 |
|
Error Codes¶
Code | Description |
---|---|
31400 | Asset ID is required |
31401 | Access Token is invalid |
31512 | Selecting an OU is required |
Samples¶
Request Sample¶
url: https://{apigw-address}/app-portal-service/v2.2/user/authorization/asset/check
method: POST
headers: {"Authorization":"Bearer your_token"}
requestBody:
{
"assetIds": [
"your_asset_id_1",
"your_asset_id_2",
"your_asset_id_3",
"your_asset_id_4",
"your_asset_id_5",
"your_asset_id_6",
"your_asset_id_7"
]
}