Delete - n49/N49-Data-Api-Documentation GitHub Wiki

#DELETE

The DELETE request is used when you want to DELETE an existing Listing on n49.ca. This API call effectively undoes an ADD request. When a listing is DELETEd, we remove all the content you've provided except for the name, address, phone number, and categories. We will also revert the listing to the state it was in before it became claimed, including any photos or videos that were there previously.

Removing or deleting: DELETEing a listing does not remove the listing.

##Request

Properties

Property Value
Method DELETE
URL http://data-api.n49.ca/businesses/delete/bID/
api_key your n49.ca api key

NOTE: The above bID needs to be replaced with the bID of the listing you wish to DELETE

In response to this request, our server will return a response with one of the following status codes.

Status Codes

Status Code Condition
200 OK The DELETE operation was committed to durable storage.
400 BAD REQUEST You sent a malformed request.
404 NOT FOUND The requested listing does not exist on our site.
5xx SERVER ERROR Temporary error -- You should try again later. Server outage, etc.

##Body

The body of the DELETE response will be empty.