Skip to main content

I have stored some information in iiQ Assets that is used quite often. Would it be possible to use some sort of API to query information using a field and getting back just a few fields? I’d like to maybe do this in C#.NET or really any programming language is fine… Mainly just to speed up how quickly I can get just an item or two, instead of going through the rather robust search offered in iiQ Assets.

 

If this is not possible, please let me know - if it is possible, let me know even more :)

@SPenland 4671c29 gilmer Thank you for submitting your question to our community! 😄

I reached out to my API masters at iiQ, and they have said it is an all-or-nothing situation. @jclark  @bclark  @calexander  @curtis.bohlmeyer Any thoughts here? 


The fields you receive in the response is all or nothing, but not necessarily the number of assets. You CAN query a subset of assets to some degree. You just have to kind of dig to figure out the filtering in the payload.

For example:
If I wanted to query assets based on purchase date…

 

 

POST to .../api/v1.0/assets

Payload:

{
"Filters":e
{
"Facet":"purchaseddate",
"Name":"daterange:07/03/2024-10/01/2024",
"Value":"daterange:07/03/2024-10/01/2024",
"GroupIndex":0
}
]
}

 


Parsing the response as part of your script and having it return only the values you want, in an array or something, would be a way to do get what you need without seeing the entire response.


So, I could set up my own query using your filters and POST that and get back the assets? Is it possible to test this on https://hoppscotch.io/ ? How does the authentication work with this type of request?


You’ll need to create an API token.

 


Reply