Discussions

Ask a Question
Back to All

Finding Assets with 'Asset Status -> Active'

How can you use the get all assets that have an 'Asset Status -> Active'? When I look at the JSON object for the asset, the asset status is "asset_status": ""

When I use the query param builder, it generates the below URL, but when I run it, I get nothing.

'https://dc-region.zuperpro.com/api/assets?sort_by=created_at&sort=DESC&page=1&count=10&populate_inspection_form=false&filter.asset_status=%27%27';

Also, when I used the builder with a field I know, ie 'Installed' the url if makes has %27 at the start and end of that param. You need to remove them for the url to function.

'https://dc-region.zuperpro.com/api/assets?sort_by=created_at&sort=DESC&page=1&count=10&populate_inspection_form=false&filter.asset_status=%27INSTALLED%27

should be
'https://dc-region.zuperpro.com/api/assets?sort_by=created_at&sort=DESC&page=1&count=10&populate_inspection_form=false&filter.asset_status=INSTALLED