Unable to use section parameter on mobile-devices/detail API

Riby
New Contributor

I've been trying to use the api/v2/mobile-devices/detail endpoint to get data on all mobile devices registered with Jamf. I have already done the same for computers using api/v1/computers-inventory, but for mobile-devices there is a bug.

When calling the mobile-devices endpoint with sections IOS and LOCATION, I get a 400 response back. The request looks like this:

api/v2/mobile-devices/detail?page-size=1000&section=IOS&section=LOCATION


The response returned says "INVALID_REQUEST_PARAMETER_TYPE, Invalid value of request parameter: section, Required type: java.util.Set".

If I do the same with sections GENERAL and HARDWARE instead, I get a 200 response with the data I want.

api/v2/mobile-devices/detail?page-size=1000&section=GENERAL&section=HARDWARE


Given that sections that exist on the computer endpoint work while others don't, it seems like the endpoint might use the same enums for sections as the computer inventory endpoint despite the sections on the object being different.


Is this possible to work around and/or fix somehow?

0 REPLIES 0