Vote.for_posts

votes#destroy - Unvote a post

Parameters

Name Description
post_id required The ID of the post you want to un-vote

Request

Route

DELETE /v1/posts/57/vote

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer your_access_token
Host: api.producthunt.com

Body

{}

Response

Status

200 OK

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Rate-Limit-Limit: 900
X-Rate-Limit-Remaining: 900
X-Rate-Limit-Reset: 900
Content-Type: application/json; charset=utf-8
ETag: W/"fae0b4a2c3e1bb13f580bdd2364d4c8c"
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 3455

Body

{
  "vote" : {
    "id" : 37,
    "created_at" : "2017-07-13T13:32:05.044-07:00",
    "user_id" : 512,
    "post_id" : 57,
    "user" : {
      "id" : 512,
      "created_at" : "2017-07-13T13:32:05.037-07:00",
      "name" : "Karl User the 999th",
      "username" : "producthunter995",
      "headline" : "Product Hunter",
      "twitter_username" : "hunter999",
      "website_url" : "http://awesome.io",
      "profile_url" : "http://www.producthunt.com/@producthunter995",
      "image_url" : {
        "30px" : "https://avatars-cdn.producthunt.com/512/original?auto=format&fit=crop&crop=faces&w=30&h=30",
        "32px" : "https://avatars-cdn.producthunt.com/512/original?auto=format&fit=crop&crop=faces&w=32&h=32",
        "40px" : "https://avatars-cdn.producthunt.com/512/original?auto=format&fit=crop&crop=faces&w=40&h=40",
        "44px" : "https://avatars-cdn.producthunt.com/512/original?auto=format&fit=crop&crop=faces&w=44&h=44",
        "48px" : "https://avatars-cdn.producthunt.com/512/original?auto=format&fit=crop&crop=faces&w=48&h=48",
        "50px" : "https://avatars-cdn.producthunt.com/512/original?auto=format&fit=crop&crop=faces&w=50&h=50",
        "60px" : "https://avatars-cdn.producthunt.com/512/original?auto=format&fit=crop&crop=faces&w=60&h=60",
        "64px" : "https://avatars-cdn.producthunt.com/512/original?auto=format&fit=crop&crop=faces&w=64&h=64",
        "73px" : "https://avatars-cdn.producthunt.com/512/original?auto=format&fit=crop&crop=faces&w=73&h=73",
        "80px" : "https://avatars-cdn.producthunt.com/512/original?auto=format&fit=crop&crop=faces&w=80&h=80",
        "88px" : "https://avatars-cdn.producthunt.com/512/original?auto=format&fit=crop&crop=faces&w=88&h=88",
        "96px" : "https://avatars-cdn.producthunt.com/512/original?auto=format&fit=crop&crop=faces&w=96&h=96",
        "100px" : "https://avatars-cdn.producthunt.com/512/original?auto=format&fit=crop&crop=faces&w=100&h=100",
        "110px" : "https://avatars-cdn.producthunt.com/512/original?auto=format&fit=crop&crop=faces&w=110&h=110",
        "120px" : "https://avatars-cdn.producthunt.com/512/original?auto=format&fit=crop&crop=faces&w=120&h=120",
        "132px" : "https://avatars-cdn.producthunt.com/512/original?auto=format&fit=crop&crop=faces&w=132&h=132",
        "146px" : "https://avatars-cdn.producthunt.com/512/original?auto=format&fit=crop&crop=faces&w=146&h=146",
        "160px" : "https://avatars-cdn.producthunt.com/512/original?auto=format&fit=crop&crop=faces&w=160&h=160",
        "176px" : "https://avatars-cdn.producthunt.com/512/original?auto=format&fit=crop&crop=faces&w=176&h=176",
        "220px" : "https://avatars-cdn.producthunt.com/512/original?auto=format&fit=crop&crop=faces&w=220&h=220",
        "264px" : "https://avatars-cdn.producthunt.com/512/original?auto=format&fit=crop&crop=faces&w=264&h=264",
        "32px@2X" : "https://avatars-cdn.producthunt.com/512/original?auto=format&fit=crop&crop=faces&w=64&h=64",
        "40px@2X" : "https://avatars-cdn.producthunt.com/512/original?auto=format&fit=crop&crop=faces&w=80&h=80",
        "44px@2X" : "https://avatars-cdn.producthunt.com/512/original?auto=format&fit=crop&crop=faces&w=88&h=88",
        "88px@2X" : "https://avatars-cdn.producthunt.com/512/original?auto=format&fit=crop&crop=faces&w=176&h=176",
        "32px@3X" : "https://avatars-cdn.producthunt.com/512/original?auto=format&fit=crop&crop=faces&w=96&h=96",
        "40px@3X" : "https://avatars-cdn.producthunt.com/512/original?auto=format&fit=crop&crop=faces&w=120&h=120",
        "44px@3X" : "https://avatars-cdn.producthunt.com/512/original?auto=format&fit=crop&crop=faces&w=132&h=132",
        "88px@3X" : "https://avatars-cdn.producthunt.com/512/original?auto=format&fit=crop&crop=faces&w=264&h=264",
        "original" : "https://avatars-cdn.producthunt.com/512/original?auto=format&fit=crop&crop=faces&w=original&h=original"
      }
    }
  }
}