Skip to main content

I wanted clarification on what HTTP response status code Jamf Pro will return if I call the /api/v2/mobile-devices endpoint when I only have a Jamf Computer license, and similarly, what status code I will get if I call the /api/v1/computers-inventory endpoint when I only have a Mobile Devices license.

Sounds like the perfect situation for you to test.

 

I would not expect API to care what licenses you have or don't have as the licenses are for the managed devices and not the API access. The API will return results if you have results to return from the endpoint regardless of what licenses you have.


I have account with both type license.Are you sure it would not return any error code like unauthorized or not found ?


The unauthorized would be returned if the API account you use does not have access to the API endpoint you are trying to access. I’m not sure if there is a situation where Jamf will ever return “not found”, but so long as you have devices to be found Jamf will return results. 

 

What problem are you trying to solve, or is this just curiosity?


We are working on integrating Jamf with our product and wanted to confirm if any Jamf APIs have license-based restrictions. Specifically, in cases where customers may have purchased only one type of license (e.g., Computers or Mobile Devices), are there certain APIs that would be inaccessible?


The unauthorized would be returned if the API account you use does not have access to the API endpoint you are trying to access. I’m not sure if there is a situation where Jamf will ever return “not found”, but so long as you have devices to be found Jamf will return results. 

 

What problem are you trying to solve, or is this just curiosity?

Are you sure we get empty response with 200 status code?


Reply