Check Asset Permission¶
Check if the current user has the access permission of the requested asset.
Request Format¶
POST https://{apigw-address}/app-portal-service/v2.0/user/authorization/asset/check
Request Parameters (Header)¶
Name |
Required or Not |
Data Type |
Description |
---|---|---|---|
Authorization |
true |
String |
Access Token, represented as Bearer Token. Refer to Log In or Refresh Access Token to learn how to get Access Token. |
Request Parameters (Body)¶
Name |
Required or Not |
Data Type |
Description |
---|---|---|---|
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 |
If has the full access of the assets, return “true”; if has no permission or has permisson of some assets, return “false”. |
Sample¶
Request Sample¶
POST
https://{apigw-address}/app-portal-service/v2.0/user/authorization/asset/check
headers: {"Authorization":"Bearer APP_PORTAL_S_TDKKeqfYBK3m5z3LRgKVqThWDYnRBN44"}
body:{
"assetIds": [
"rJDyH3Rm",
"FS6c3XAH",
"qQHC4vyw",
"txeiiU9x",
"adNIljjB",
"Dqp9GZsT",
"Mk2BVzZN"
]
}
Return Sample¶
{
"code": 200,
"message": "",
"data": false
}