KACE 7.0 API
Answers (4)
The test code works for the /api/inventory/machines/ sectionof the API, but does not work on the /api/scripting/ section of the API. It also gets a 403 forbidden.
I have reached out to support and they pointed me towardsthe article you mentioned in the first post. Otherwise, they gave me the following line from the API reference. I understand support not troubleshooting mycustom code. However, this appears to bea permissions issue. I have not gottenany further response from support since I was provided with the link in theprevious post.
“Our Support team does not provide assistance for any customdevelopment that implements the APIs covered in this guide which is in linewith our support policy.”
I will say that the example code they provided didhelp. I compared it to the code I hadand found I was not using the header value: x-dell-api-version: 1. Technically this isn't a required field andits not specified what value to use for each section, but adding this didresolve my 403 forbidden that I was receiving trying to access/api/inventory/machines/. However, I amstill getting 403 access forbidden when trying to access /api/scripting/. Again, I will say even the example code getsthis error when trying to access this section of the API.
“As the development of this API continues, some routes maysupport multiple implementations. In that case this header determines whichversion of the route will execute. The requested version must be at least 1. Ifthe requested version does not exist for the given route, the server executesthe most recent version.”