Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.06 KB

DELETE_photos_id_vote.md

File metadata and controls

53 lines (36 loc) · 1.06 KB

Photo Resources

DELETE photos/:photo_id/vote

Description

Unlikes the specified photo for the user.


Requires authentication

OAuth


Parameters

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

Return format

A JSON object containing keys: status, message, photo (in short format) 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.

  • 404 Not Found — The requested photo does not exist or was deleted.

Example

Request

DELETE v1/photos/8359543/vote

Return

{
    "status": 200,
    "message": "Successfully unliked photo.",
    "photo": {
      "id": 12345,
      "name": "photo1",
      ...
    }
    "error": "None"
}