Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

48 lines (31 sloc) 0.919 kb

Photo Resources

DELETE photos/:id

Description

Deletes the photo from the User's library.


Requires authentication

OAuth


Parameters

  • id (required) — The Photo ID to delete.

Return format

A JSON object containing keys: status, message and error(if happened).


Errors

All known errors cause the resource to return HTTP error code header together with a JSON array containing at least 'status' and 'error' keys describing the source of error.

  • 403 Forbidden — You do not own the photo you are trying to delete.
  • 404 Not Found — The requested photo does not exist or was deleted.

Example

Request

DELETE v1/photos/8359543

Return

{
    "status": 200,
    "message": "Successfully deleted a photo.",
    "error": "None"
}
Jump to Line
Something went wrong with that request. Please try again.