Posts

posts#collect - Remove a post from a collection

Parameters

Name Description
collection_id required The numeric ID of the collection

Request

Route

DELETE /v1/posts/1/collect

Headers

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

Body

{
  "collection_id" : 1
}

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/"336c48e474253ffaa2e7c2ec306b093d"
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 11053

Body

{
  "collected_post" : {
    "id" : 1,
    "post_id" : 1,
    "collection_id" : 1,
    "collection" : {
      "id" : 1,
      "name" : "Awesome Collection #6",
      "title" : "Best new collection ever",
      "created_at" : "2017-09-14T06:02:16.851-07:00",
      "updated_at" : "2017-09-14T06:02:17.149-07:00",
      "featured_at" : null,
      "subscriber_count" : 0,
      "background_image_url" : null,
      "category_id" : null,
      "collection_url" : "http://www.producthunt.com/@producthunter346/collections/awesome-collection-6?utm_campaign=producthunt-api&utm_medium=api&utm_source=Application%3A+Awesome+Oauth+App+%2339+%28ID%3A+1%29",
      "color" : "blue",
      "posts_count" : 2,
      "user" : {
        "id" : 1,
        "created_at" : "2017-09-14T06:02:16.836-07:00",
        "name" : "Karl User the 346th",
        "username" : "producthunter346",
        "headline" : "Product Hunter",
        "twitter_username" : "hunter346",
        "website_url" : "http://awesome.io",
        "profile_url" : "http://www.producthunt.com/@producthunter346",
        "image_url" : {
          "30px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
          "32px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
          "40px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
          "44px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
          "48px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
          "50px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png",
          "60px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png",
          "64px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png",
          "73px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png",
          "80px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
          "88px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
          "96px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
          "100px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
          "110px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
          "120px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
          "132px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
          "146px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
          "160px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
          "176px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
          "220px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
          "264px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
          "32px@2X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png",
          "40px@2X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
          "44px@2X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
          "88px@2X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
          "32px@3X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
          "40px@3X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
          "44px@3X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
          "88px@3X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
          "original" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png"
        }
      },
      "posts" : [
        {
          "comments_count" : 0,
          "day" : "2017-09-14",
          "id" : 2,
          "name" : "Awesome Idea #64",
          "product_state" : "default",
          "tagline" : "Great new search engine",
          "ios_featured_at" : null,
          "category_id" : null,
          "created_at" : "2017-09-14T06:02:16.952-07:00",
          "current_user" : {
            "voted_for_post" : false,
            "commented_on_post" : false
          },
          "discussion_url" : "http://www.producthunt.com/posts/awesome-idea-64?utm_campaign=producthunt-api&utm_medium=api&utm_source=Application%3A+Awesome+Oauth+App+%2339+%28ID%3A+1%29",
          "exclusive" : null,
          "featured" : true,
          "maker_inside" : false,
          "makers" : [],
          "platforms" : [],
          "redirect_url" : "http://www.producthunt.com/r/8eaf6000f8a608/2?app_id=1",
          "screenshot_url" : {
            "300px" : "http://placehold.it/850x850.png",
            "850px" : "http://placehold.it/850x850.png"
          },
          "thumbnail" : {
            "id" : 2,
            "media_type" : "image",
            "image_url" : "https://ph-files.imgix.net/142baeb3-c948-4c82-8657-08a1af9ecc78?auto=format&fit=crop&h=570&w=430",
            "metadata" : {}
          },
          "topics" : [],
          "user" : {
            "id" : 5,
            "created_at" : "2017-09-14T06:02:16.930-07:00",
            "name" : "Karl User the 350th",
            "username" : "producthunter350",
            "headline" : "Product Hunter",
            "twitter_username" : "hunter350",
            "website_url" : "http://awesome.io",
            "profile_url" : "http://www.producthunt.com/@producthunter350",
            "image_url" : {
              "30px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
              "32px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
              "40px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
              "44px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
              "48px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
              "50px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png",
              "60px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png",
              "64px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png",
              "73px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png",
              "80px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "88px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "96px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "100px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "110px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "120px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "132px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "146px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "160px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "176px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "220px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "264px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "32px@2X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png",
              "40px@2X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "44px@2X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "88px@2X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "32px@3X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "40px@3X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "44px@3X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "88px@3X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "original" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png"
            }
          },
          "votes_count" : 0
        },
        {
          "comments_count" : 0,
          "day" : "2017-09-14",
          "id" : 3,
          "name" : "Awesome Idea #65",
          "product_state" : "default",
          "tagline" : "Great new search engine",
          "ios_featured_at" : null,
          "category_id" : null,
          "created_at" : "2017-09-14T06:02:17.019-07:00",
          "current_user" : {
            "voted_for_post" : false,
            "commented_on_post" : false
          },
          "discussion_url" : "http://www.producthunt.com/posts/awesome-idea-65?utm_campaign=producthunt-api&utm_medium=api&utm_source=Application%3A+Awesome+Oauth+App+%2339+%28ID%3A+1%29",
          "exclusive" : null,
          "featured" : true,
          "maker_inside" : false,
          "makers" : [],
          "platforms" : [],
          "redirect_url" : "http://www.producthunt.com/r/2359794266bded/3?app_id=1",
          "screenshot_url" : {
            "300px" : "http://placehold.it/850x850.png",
            "850px" : "http://placehold.it/850x850.png"
          },
          "thumbnail" : {
            "id" : 3,
            "media_type" : "image",
            "image_url" : "https://ph-files.imgix.net/275caaee-2341-4baf-94b1-11703e1474c0?auto=format&fit=crop&h=570&w=430",
            "metadata" : {}
          },
          "topics" : [],
          "user" : {
            "id" : 8,
            "created_at" : "2017-09-14T06:02:16.997-07:00",
            "name" : "Karl User the 353th",
            "username" : "producthunter353",
            "headline" : "Product Hunter",
            "twitter_username" : "hunter353",
            "website_url" : "http://awesome.io",
            "profile_url" : "http://www.producthunt.com/@producthunter353",
            "image_url" : {
              "30px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
              "32px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
              "40px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
              "44px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
              "48px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
              "50px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png",
              "60px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png",
              "64px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png",
              "73px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png",
              "80px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "88px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "96px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "100px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "110px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "120px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "132px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "146px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "160px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "176px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "220px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "264px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "32px@2X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png",
              "40px@2X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "44px@2X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "88px@2X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "32px@3X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "40px@3X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "44px@3X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "88px@3X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
              "original" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png"
            }
          },
          "votes_count" : 0
        }
      ]
    }
  }
}