01-30-2020 12:21 PM
Hi, ultimately I would like to add guest users using the API. At the moment, I'm having trouble authenticating. So far, using post man I have done the below and get 403: access_denied.
curl --location --request GET 'http://cloud-va.aerohive.com/xapi/v1/monitor/devices?ownerId=2'
--header 'Authorization: Bearer <ACCESS_TOKEN_FROM_EXTREMECLOUD_IQ>'
--header 'X-AH-API-CLIENT-ID: <CLIENT_ID_FROM_DEV_PORTAL>'
--header 'X-AH-API-CLIENT-SECRET: <CLIENT_SECRET_FROM_DEV_PORTAL>'
--header 'X-AH-API-CLIENT-REDIRECT-URI: https://hivemanager.example.com'
I used the Client ID from the development portal to generate the API Access Token in the Cloud Hive Manager.
As we're not using the on-prem Hive Manager I set a dummy Redirect URL (https://hivemanager.example.com) in both the development portal.
I get this error in Postman -
{
"data": null,
"error": {
"status": 403,
"code": "access_denied",
"rawMessage": "ULKvmfFXwD: null"
}
}
01-31-2020 11:45 AM
Hello,
Your ownerId (in the URL) appears to be wrong. The value you need is the VIQ Id. You can find this by going to the person icon ->About Hivemanager
It will be the last value.