Updating a device's address(IP, FQDN or NetBios, the Address field is always the same) only having the device's old and new address consists of two distinct operations:
1. Since all API operations have to be done based on the ID of the object that you want to change, you have to look for the objects with the current address to find their ID's first, if you were looking for the device with address 220.127.116.11:
Or if you wanted to partially match a hostname "myserver" but with variations (myserver, myserver.domainx, myserver.domainy) :
The query above would return something like:
<?xml version="1.0" encoding="UTF-8"?>
<devices totalcount="2" listend="1">
<probe>Probe on NEMO-VM2012-2</probe>
<probe>My Local probe</probe>
<device>Some Other Device</device>
2. Now, we have to use the previously acquired ID's (2003, 2236) to issue the setobjecproperty operation to effectively change the address. For instance if we were to update the address of "Some Device" (ID: 2003) to newaddress.xyz we would issue the following:
To modify several addresses, implement a repetition mechanism that goes trough all resulting ID's and changes them to the new address using the setobjecproperty for every result of the table.xml?content=devices query.
The API will also require you to provide an username and password or passhash for authentication, an introduction to using the API is available here.
If you're looking for a working example for changing the domain in device's names in bulk using a powershell script, you can check out this: KB: Change Device Name Using Script
Luciano Lingnau [Paessler Support]