Request Data
Use this to change the status of an asset. Active assets may be set to an inactive or revoked status, or inactive assets may be returned to an active status.
Inactive or revoked assets are excluded by default from reports and are prevented from loading inspections. This provides a means of removing inactive assets from dropdowns and reports while maintaining any previous inspections that may have occurred.
Required Information | |
---|---|
Name | Description |
action | adminassets |
operation | editstatus |
format | xml |
target | The asset to modify. A request type must be specified as well (see below). |
reqtype | The status to set the operator to. Acceptable values:
|
status | The status to set the operator to. Acceptable values:
|
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=editstatus&format=xml&target=7654&reqtype=exsid&status=1
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