Question

Get assets from API - Page 41

  • 11 March 2024
  • 1 reply
  • 21 views

Hello,

 

I'm trying to list all my assets in a category, but when I get to page 41, I get an error.

My query is as follows:

  • curl -v -u api_key:X -X GET “https://TENANT.freshservice.com/api/v2/assets?filter=”MYQUERY”&include=type_fields&page=41”

I’ve tried to ask more than 30 assets per page, but it didn’t work either.

Do you have any idea what I could do to list all my assets?

Regards,


1 reply

Userlevel 2
Badge +2

Hi!

There is nothing wrong with the query. According to Freshservice API documentation, when filtering assets:
8. The number of objects returned per page is 30. The total count of the results will be returned along with the result (In the headers).
9. The maximum number of pages returned is 40.

Unless Freshworks fixes that I think you can only list all assets as long as you are not filtering. I am not sure why that limit would be set, maybe someone from Freshworks can explain.

Reply