Delete Published Data

The following HTTP request method allows you to delete a single data object or a set of published data objects.  At least one of the following parameters is required: id, beforeafter or at. Please refer to Data Types for the definitions of TIMESTAMP, OID, TIMESTAMP_CSV and PLUG_ID_CSV.

Request

Method :

DELETE

Base Url :

http://api.cloudplugs.com/iot/data/CHMASK

Headers :

 X-Plug-Id  : [PLUG_ID], // The PlugId received on Enroll Response
 X-Plug-Auth: [String]   // Auth string

Body :

 {
   id	   : [OID],				 // ID of the published data
   before  : [TIMESTAMP || OID],  // Object ID of published data
   after   : [TIMESTAMP || OID],  // Object ID of published data
   at      : [TIMESTAMP_CSV],    // a comma separated sequence of time stamps of published data
   of      : [PLUG_ID_CSV],       // a comma separated sequence of PlugIDs that publish data
   channel : [CHANNEL],		     // optional channel
   offset  : [N],                 //  offset of data with respect to the last published data
   limit   : [N] }               // if you set limit to 1, the response will contain the last published data on the first Channel matched by CHMASK

Response

Status :

200 OK  // in case of success

Body :

1  // The delete request has been queued to be executed at a later time
Still need help? Get in touch!
Last updated on 15th Feb 2019