Delete Monitor (XML API)

Last modified on July 26, 2024

To delete a monitor, send a POST request to /devices/delete and specify the ID of the monitor to delete in the <ObjDevice> XML tag.

Syntax

Request URL

POST https://www.alertsite.com/restapi/devices/delete

Request Body

XML

<Delete>
   <TxnHeader>
      <Request>
         <Login>_LOGIN_</Login>
         <SessionID>_SESSION_</SessionID>
         <ObjCust>_CUSTOMER_ID_</ObjCust>
         <ObjDevice>_MONITOR_ID_</ObjDevice>
      </Request>
   </TxnHeader>
   <Source>REST_Client</Source>
</Delete>

Response Body

On success, the operation returns Status 0:

XML

<Response>
   <Status>0</Status>
   <Message>No errors.</Message>
   <SessionID>2d472a96369fbaa1</SessionID>
   <ObjDevice>48423</ObjDevice>
   <ObjCust>24567</ObjCust>
   <Custid>C24567</Custid>
   <Company>WidgetWorld</Company>
   <CurrPlan></CurrPlan>
   <CurrInterval></CurrInterval>
   <AvailablePlans>WTP5-1.5x:1:1</AvailablePlans>
   <TxnOut></TxnOut>
</Response>

See Also

Add Monitor
Edit Monitor
List Monitors
Get Monitor
Get Monitor Status
AlertSite XML API

Highlight search results