entries/delete

Removes an existing entry that the logged user has created.

URL

http://api.staction.com/entries/delete.format

HTTP Method:

POST

Required Parameters

  • id: ID of the entry you want to remove. The call will fail if the logged user isn’t the original owner of the entry specified by id.

Examples (using curl)

  • curl -d “developerKey=123&account=pasteinteractive&email=brian@pasteinteractive.com&password=a&id=1099035” http://api.staction.com/entries/delete.json

Expected Responses

If the call fails to be executed properly, the API will return an error in the default error format, with a status field set to false, and a reason field explaining why it failed to run (respecting the format requested). If the call runs properly, it will return a status field set to true, indicating your entry was successfully deleted.

As an example, here are a couple of parsed JSON responses, transferred into multidimensional arrays for the sake of clarity.

Array
(
    [status] => true
) 
Array
(
    [status] => false
    [reason] => Invalid entry.
)