When I am making a get request on postman with the url : /ams/shared/api/accounts the response is showing :"errorCode": -1, "errorDescription": "The request has not been authenticated. Allowed secure types for the resource are: ''."
The Headers include :
◦ Content-Type :application/json
◦ Accept :application/json
◦ x-kace-csrf-token: ###################################
◦ x-kace-api-version:13
1 Comment
[ + ] Show comment
Answers (0)
Please log in to answer
Be the first to answer this question
https://kace.HOSTNAME.com/ams/shared/api/organizations
I'm passing headers and cookies:
-H "x-kace-api-version:13" -H "Accept: application/json" -b "x-kace-auth-jwt=..." -H "x-kace-authorization: ..."
(h-kace-csrf-token no longer required according to docs for newest API). I can make other calls like /api/users/users/ and /api/service_desk/queues just fine and get JSON response, but some other calls like this organizations call return that error you're getting. And other calls like /api/service_desk/tickets return "Unknown Organization database". The API seems very inconsistent from call to call for some reason. Just digging for answers still... if you solved this one, @jagriti, please reply, thanks! - adubry 7 months ago