Skip to main content

I'm encountering issues with retrieving the categories list from the API. The default pagination is set to 200, but attempts to increase or decrease this limit to, for example, 1000 using the URL = “/api/v1.0/categories?$s=1000” or 100 URL = “/api/v1.0/categories?$s=100”  are unsuccessful.

@HLicea 51023bd misd Thank you for submitting your question to our community! 😄

I have contacted our tier 2 support team for their expertise on this issue! Once I hear from them, I will update you. Thanks! 


@HLicea 51023bd misd Good Afternoon! 

Thank you for reaching out today, and I hope you are doing well! I wanted to reach back out today to check back in to see if your district was attempting to get a list of ticket categories, part categories, or asset categories? Additionally, I also wanted to double check if you may have potentially been using an API call from this documentation as well: https://incidentiq.stoplight.io/. I wanted to double check since unfortunately when investigating, I was unable to locate a similar API call with this API Url in the documentation but if I may have potentially overlooked a particular call, please let me know! 

Best Regards,
Drew


We need to retrieve asset categories, although not explicitly listed in the documentation, you can refer to the asset schema under Asset → Model → Category in the Incident IQ API v1.0 as mentioned on Asset | Incident IQ API v1.0 (stoplight.io).


@HLicea 51023bd misd Thank you for reaching back out to confirm! 

After investigating this API call once again and comparing the call against the API call Incident IQ makes to retrieve the Model Categories for your district, I found that you will want to modify the call a bit so that v2 is also included in the API URL as well such as in the URL below:

/api/v1.0/categories/v2?$s=1000

If v2 is added to the URL prior to $s=1000, then the page size of the call should be able to be adjusted to return more or less model categories. With that said though, if you encounter any issues with this URL though or if you may have any questions or concerns, please let me know, and I hope you have a great day! 

Best Regards,
Drew


Thank you very much, it works perfectly. Is there any documentation about this V2?


Reply