====/api/pins====
===Usage===
This function is used to bulk-convert point names in ARDIs internal codes into human readable values. Point codes are made up of the //asset id//, //property id// and //node// delimited by a colon, such as **12:22:measurement**.
These can be queried one of two ways - with all of the pins in a **single parameter**, or one pin **per parameter**.
===Details==
^Detail^Value^
|Group|Asset|
|From Server Version|2025.0.0|
|Permission|[[permission_guest|Guest]]|
|Methods|GET or POST|
==Parameters==
^Parameter^Notes^Meaning^
|**pins**|Integer [Required]|A semi-colon (;) delimited list of codes, or the number of pin parameters|
|**pin//x//**|String [Optional]|Individual pin values|
|**format**|String (xml)|Either 'xml' or 'json'|
===Examples===
==Call==
http://ardiserver.com/s/sitename/api/lookuppoints?pins=5:10:text;5:11:text
==Success (XML)==
5:26:measurement
MEASUREMENT
0
80
m/min
1
//NOTE: In the above example, the word 'code' has been replaced with the word 'c_ode' due to our wiki syntax. In the real XML, the name of the element is 'code'.//
==Success (JSON)==
[
{
"code":"5:27:measurement",
"type":"MEASUREMENT",
"min":"0",
"max":"80",
"units":"m\/min",
"points":"1"
}
]
===Alternate Calling Method===
http://ardiserver.com/s/sitename/api/lookuppoints?pins=2&pin0=5:10:text&pin1=5:11:text
//This version of the function has exactly the same outcome - the parameters are simply passed in differently.//
===Additional Data===
This function may also provide //display details// for the property. This includes how to map values to colours and gradients.