I am trying to consume webroot console api methods. I am able to successfully authenticate, obtain a token, then use the token to consume the /service/api/console/gsm/{parentKey}/sites to obtain a list of child sites.
Whenever I attempt to consume any api call for the child sites I get an unauthorized response. I am replacing the {gsm} variable with the AccountKeyCode and the {siteId} with the SiteId property of sites being returned. I have also tried using the parent gsm and get the same result. The AccountKeyCode property returned by the /service/api/console/gsm/{parentKey}/sites doesn’t have the “-”s in it. So I tried both with and without.
There must be something obvious I’m missing about calling API methods for child sites. Please help.
FWIW, I’m using C# to access the API and I am not using the SDK.