Query PI AF by attribute name using the PI Web API

I'm trying to figure out how to query PI AF by attribute name via the PI Web API. I need to obtain the WebID so that I can use it to update data values.

 

I've tried many various of this command:

https://<hostname>/piwebapi/attributes/search?databaseWebId=<db webid hidden>&query=Element:{ AttributeName:='<ATTRIBUTE NAME>'}

 

I can't seem to find the right combination of query parameters. The results are either an error or no data returned.

 

I used to use the search/query controller but that has been removed in the version of the Web API that we have installed.

 

Does anyone have a simple example I could follow or know what I'm doing wrong?

 

Thanks,

Kevin

Parents Reply Children
No Data