API Get request with no pagination?

T4NGO
New Contributor

Hi!  I'm new to using the Jamf Pro API.  I am sending a GET request to the API to get all mobile objects.   If I use the API v1 endpoint, it returns all mobile devices:

/api/v1/mobile-devices

But I am aware that this will be deprecated.  However if I use API v2, we need to specify a large page size, otherwise we get only the first 100 results (the default page size in v2):

/api/v2/mobile-devices?page=0&page-size=100000&sort=id%3Aasc

 

Is there any way to make a GET request to see all mobile devices in JSON?  Or is the only way to specify a large page size?  Thanks in advance for any help or insights.

0 REPLIES 0