Modify an existing location object.
Required Information | |
---|---|
Name | Description |
action | adminlocations |
operation | edit |
format | xml |
target | The name of the location to modify. (This value is case-sensitive.) |
name | The new name of the location. (This value is case-sensitive.) |
Optional Information | |
active | Possible values:
If no value is passed, true is assumed. |
Returned information:
A success or error message.
Example Request
https://omi.zonarsystems.net/interface.php?customer=zzo2544&username=zonar&password=secret.pw.2019&action=adminlocations&operation=edit&format=xml&name=Home2&target=Home
Example Success Reply
<?xml version="1.0"?>
<success ver="1.07">
<action>adminlocations</action>
</success>
Example Error Reply
<?xml version="1.0"?>
<error ver="1.0">
<action>adminlocations</action>
<code>201</code>
<message>Location 'Seattle' could not be found.</message>
</error>