Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
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.
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
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?
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).
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