Skip to main content
May 18, 2018 3:58 PM UTC
Question

Axeda Rest API call for retrieving assets using IDs

Hi,

I'm new to Axeda. I'm using Rest API to retrieve the assets using IDs.

I'm using this API:-  services/v2/rest/asset/findByIds

 

My issue is, its accepting only 100 ids in the request. Is there any way to give more than 100 ids in the request.

 

Thanks,

Srikanth.

 

 

4 replies

May 18, 2018 4:28 PM UTC

i am pretty sure we have a hard cap but I don't remember what it was... Try setting the pageSize in your AssetCriteria to a larger value. We might prevent you from fetching more than 100 - I'll try to find the documentation

May 18, 2018 4:38 PM UTC

also - mentor.axeda.com is cahced as a pdf from this post https://community.ptc.com/t5/IoT-AR-Tech-Tips/Mentor-Axeda-com-retirement/td-p/532436

 

there is lots of good information for you in there. we had an example that shows you how to process 'all the assets' in a paginated style. that might be all you're looking for?

May 18, 2018 5:31 PM UTC

Depending on your requirements here, you can use Scripto to simulate the request on the server side (and save round-trips).  

 

Scripto is creating a Custom Object in Groovy on the Platform and then invoking it via HTTP.  

 

https://community.ptc.com/t5/IoT-AR-Tech-Tips/Using-Axeda-Scripto/m-p/532713