Delete an item from a node

HTTP URI: /rest/pubsub/pubsub.example.com/delete-item

Available HTTP methods:

GET

Method returns example content which contains all required and optional parameters that may be passed.

POST

Command requires fields node and item-id to be filled

  • node - field contains id of node to publish to
  • item-id - field contains id of entry to publish

Example content to delete an item with id item-1 from node with id example.

Using XML

Request in XML. 

<data>
  <node>example</node>
  <item-id>item-1</item-id>
</data>

Response in XML. 

<result>
  <Note type="fixed">
    <value>Operation successful</value>
  </Note>
</result>

Using JSON

Request in JSON. 

{
  "node" : "example",
  "item-id" : "item-1"
}

Response in JSON. 

{
  "Note" : "Operation successful"
}