NetXMS Support Forum

English Support => General Support => Topic started by: jds on December 05, 2022, 09:41:57 PM

Title: WebAPI custom attribute filter
Post by: jds on December 05, 2022, 09:41:57 PM
Good day all, I have been trying to use the webapi to filter objects with a particular custom attribute name. Everything I have tried either comes back with all the objects or empty. Reading the documentation I assumed the url to call this is API_BASE/objects?@custom_attribute_name={insert attribute name}. I'm thinking I have a formatting problem but I'm not sure. I am using an Admin account to call the API so permissions shouldn't be an issue. Any help would be appreciated. Thank you
Title: Re: WebAPI custom attribute filter
Post by: Tatjana Dubrovica on December 14, 2022, 07:02:51 PM
Hi,

If you have custom attribute with name: "Region" and you want filter all nodes where custom attribute value is "Latvia" your request URL should look like: API_BASE/objects?@Region=Latvia