cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Axeda Rest API call for retrieving assets using IDs

Highlighted
Visitor

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.

 

 

Tags (1)
4 REPLIES 4

Re: Axeda Rest API call for retrieving assets using IDs

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

Re: Axeda Rest API call for retrieving assets using IDs

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?

Re: Axeda Rest API call for retrieving assets using IDs

Also - on your axeda instance there's artisan/apidocs/v2/ and artisan/apidocs/v1 . Those javadocs can be helpful at times too if you're not aware.

 

I couldn't find a specific doc indicating the absolute maximum number of records you can retrieve at a time. I do think it's 100 (just going from memory).

Re: Axeda Rest API call for retrieving assets using IDs

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