Skip to main content
Solved

API v2 - "List all Asset Types" only lists predefined asset types


We want to go with our own defined asset types as we find the OOTB asset type properties to overloaded, therefore we disabled them and created our own types. We want now to write an automation script to create the assets itself via the API.

We noticed now using the “List all Asset Types” API request, we are getting only the first 30 asset types as result. 

 

Best answer by Anonymous

Never mind. I found the answer:

 

View original
Did this topic help you find an answer to your question?

3 replies

  • 0 replies
  • Answer
  • July 15, 2021

Never mind. I found the answer:

 


  • 0 replies
  • July 15, 2021

But still. Shouldn’t the default request deliver the complete asset type list?


sanofar.allahpichai
Community Debut
Forum|alt.badge.img+6

Hi,
 

Greetings!

We only list the first 30 results in the API response per page. You can include pagination in your API call to list a maximum of 100 entries per page. 

https://domain.freshservice.com/api/v2/asset_types?per_page=100

For your reference: https://api.freshservice.com/#pagination. We hope this helps.

Warm Regards,
Sanofar
Team Freshservice


Reply