Request Data
Use this to add, edit or delete the GPS Unit of an asset.
Setting a GPS unit to an asset will associate all path data to that asset. This path data can be used in other Zonar System reports.
Required Information | |
---|---|
Name | Description |
action | adminassets |
operation | editgps |
format | xml |
target | The asset to modify. A request type must be specified as well (see below). |
reqtype | The asset to set the GPS Unit to. Acceptable values:
|
gpsunit | The unit to be set. Acceptable values:
Note: If no value is provided for gpsunit, or the parameter is omitted, then the gps unit will be removed from the asset. |
Data Returned
Returned information:
A success or error message.
Example Request
https://omi.zonarsystems.net/interface.php?customer=zzo2544&username=zonar&password=secret.pw.2019&action=adminassets&operation=editgps&format=xml&target=7654&reqtype=exsid&gpsunit=55
Example Success Reply
<success ver="1">
<action>adminassets</action>
</success>
Example Error Reply
<error ver="1.0">
<action>adminassets</action>
<code>107</code>
<message>No target supplied for asset.</message>
</error>
Related Functions
Other functions to manage assets:
- Get an Asset
- Get Assets
- Add an Asset
- Edit an Existing Asset
- Edit an Asset's Status