We are able to change Sensor Names and Priorities fine using the API (e.g. setobjectproperty.htm?id=2423&name=name&value=NewName) and these changes are reflected in the GUI. We are also able to retrieve the Primary Channel ID (ie getobjectproperty.htm?id=2423&name=primarychannel returns 0 or 1 depending which I set in the GUI).
However when I try to change the primary channel (setobjectproperty.htm?id=2423&name=primarychannel&value=1) the value is returned by getobjectpropertychanges (even if set to an invalid value e.g. 5) but is not changed in the GUI/Web interface. As soon as I navigate off the web page, the value is reset.
Any help/advice would be greatly appreciated.
On a side note, if there is a repository of pre-written API script templates available that would be very useful.
System: PRTG v8 with Support Contract running on Windows 2003. API calls being made from powershell on Windows 7.