How to Use https://FQDN/MobiControl/api/profiles to Return All Profiles
Summary
Related SOTI ONE Platform Products
Situation
By default, the JSON response returns only the top 50 profiles. This article demonstrates how to retrieve all profiles or a specific number as needed.
Process Description
The API calls by default fetch only a few profiles in the response unless we use two more methods in the request URL.
We need to use the following Request URL:
https://FQDN/mobicontrol/api/profiles?ForFamilies=AndroidPlus&Skip=0&Take=485
We are using the two methods below:
SKIP and TAKE
where
SKIP=0 (where in the list you would like to begin. The value will tell the server to remove the first X records retrieved from the result.)
And
TAKE=485 - the number of profiles we want to retrieve. (the size of the list you would like returned.)
Note: This also applies to other GET requests, for example app policies.
Was this helpful?
Thanks for your feedback