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

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-07-13T13:31:37.103-07:00",
      "updated_at" : "2017-07-13T13:31:37.469-07:00",
      "featured_at" : null,
      "subscriber_count" : 0,
      "category_id" : null,
      "collection_url" : "http://www.producthunt.com/@producthunter343/collections/awesome-collection-6?utm_campaign=producthunt-api&utm_medium=api&utm_source=Application%3A+Awesome+Oauth+App+%2339+%28ID%3A+1%29",
      "posts_count" : 2,
      "user" : {
        "id" : 1,
        "created_at" : "2017-07-13T13:31:37.086-07:00",
        "name" : "Karl User the 343th",
        "username" : "producthunter343",
        "headline" : "Product Hunter",
        "twitter_username" : "hunter343",
        "website_url" : "http://awesome.io",
        "profile_url" : "http://www.producthunt.com/@producthunter343",
        "image_url" : {
          "30px" : "https://avatars-cdn.producthunt.com/1/original?auto=format&fit=crop&crop=faces&w=30&h=30",
          "32px" : "https://avatars-cdn.producthunt.com/1/original?auto=format&fit=crop&crop=faces&w=32&h=32",
          "40px" : "https://avatars-cdn.producthunt.com/1/original?auto=format&fit=crop&crop=faces&w=40&h=40",
          "44px" : "https://avatars-cdn.producthunt.com/1/original?auto=format&fit=crop&crop=faces&w=44&h=44",
          "48px" : "https://avatars-cdn.producthunt.com/1/original?auto=format&fit=crop&crop=faces&w=48&h=48",
          "50px" : "https://avatars-cdn.producthunt.com/1/original?auto=format&fit=crop&crop=faces&w=50&h=50",
          "60px" : "https://avatars-cdn.producthunt.com/1/original?auto=format&fit=crop&crop=faces&w=60&h=60",
          "64px" : "https://avatars-cdn.producthunt.com/1/original?auto=format&fit=crop&crop=faces&w=64&h=64",
          "73px" : "https://avatars-cdn.producthunt.com/1/original?auto=format&fit=crop&crop=faces&w=73&h=73",
          "80px" : "https://avatars-cdn.producthunt.com/1/original?auto=format&fit=crop&crop=faces&w=80&h=80",
          "88px" : "https://avatars-cdn.producthunt.com/1/original?auto=format&fit=crop&crop=faces&w=88&h=88",
          "96px" : "https://avatars-cdn.producthunt.com/1/original?auto=format&fit=crop&crop=faces&w=96&h=96",
          "100px" : "https://avatars-cdn.producthunt.com/1/original?auto=format&fit=crop&crop=faces&w=100&h=100",
          "110px" : "https://avatars-cdn.producthunt.com/1/original?auto=format&fit=crop&crop=faces&w=110&h=110",
          "120px" : "https://avatars-cdn.producthunt.com/1/original?auto=format&fit=crop&crop=faces&w=120&h=120",
          "132px" : "https://avatars-cdn.producthunt.com/1/original?auto=format&fit=crop&crop=faces&w=132&h=132",
          "146px" : "https://avatars-cdn.producthunt.com/1/original?auto=format&fit=crop&crop=faces&w=146&h=146",
          "160px" : "https://avatars-cdn.producthunt.com/1/original?auto=format&fit=crop&crop=faces&w=160&h=160",
          "176px" : "https://avatars-cdn.producthunt.com/1/original?auto=format&fit=crop&crop=faces&w=176&h=176",
          "220px" : "https://avatars-cdn.producthunt.com/1/original?auto=format&fit=crop&crop=faces&w=220&h=220",
          "264px" : "https://avatars-cdn.producthunt.com/1/original?auto=format&fit=crop&crop=faces&w=264&h=264",
          "32px@2X" : "https://avatars-cdn.producthunt.com/1/original?auto=format&fit=crop&crop=faces&w=64&h=64",
          "40px@2X" : "https://avatars-cdn.producthunt.com/1/original?auto=format&fit=crop&crop=faces&w=80&h=80",
          "44px@2X" : "https://avatars-cdn.producthunt.com/1/original?auto=format&fit=crop&crop=faces&w=88&h=88",
          "88px@2X" : "https://avatars-cdn.producthunt.com/1/original?auto=format&fit=crop&crop=faces&w=176&h=176",
          "32px@3X" : "https://avatars-cdn.producthunt.com/1/original?auto=format&fit=crop&crop=faces&w=96&h=96",
          "40px@3X" : "https://avatars-cdn.producthunt.com/1/original?auto=format&fit=crop&crop=faces&w=120&h=120",
          "44px@3X" : "https://avatars-cdn.producthunt.com/1/original?auto=format&fit=crop&crop=faces&w=132&h=132",
          "88px@3X" : "https://avatars-cdn.producthunt.com/1/original?auto=format&fit=crop&crop=faces&w=264&h=264",
          "original" : "https://avatars-cdn.producthunt.com/1/original?auto=format&fit=crop&crop=faces&w=original&h=original"
        }
      },
      "background_image_url" : null,
      "color" : "blue",
      "posts" : [
        {
          "category_id" : 1,
          "comments_count" : 0,
          "day" : "2017-07-13",
          "id" : 2,
          "name" : "Awesome Idea #63",
          "product_state" : "default",
          "tagline" : "Great new search engine",
          "ios_featured_at" : null,
          "created_at" : "2017-07-13T13:31:37.221-07:00",
          "current_user" : {
            "voted_for_post" : false,
            "commented_on_post" : false
          },
          "discussion_url" : "http://www.producthunt.com/posts/awesome-idea-63?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" : [],
          "topics" : [],
          "redirect_url" : "http://www.producthunt.com/r/e2446058515da4/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/c6653aa8-1f68-429d-8c9c-8c9c5ff981e8?auto=format&fit=crop&h=570&w=430",
            "metadata" : {}
          },
          "user" : {
            "id" : 5,
            "created_at" : "2017-07-13T13:31:37.193-07:00",
            "name" : "Karl User the 347th",
            "username" : "producthunter347",
            "headline" : "Product Hunter",
            "twitter_username" : "hunter347",
            "website_url" : "http://awesome.io",
            "profile_url" : "http://www.producthunt.com/@producthunter347",
            "image_url" : {
              "30px" : "https://avatars-cdn.producthunt.com/5/original?auto=format&fit=crop&crop=faces&w=30&h=30",
              "32px" : "https://avatars-cdn.producthunt.com/5/original?auto=format&fit=crop&crop=faces&w=32&h=32",
              "40px" : "https://avatars-cdn.producthunt.com/5/original?auto=format&fit=crop&crop=faces&w=40&h=40",
              "44px" : "https://avatars-cdn.producthunt.com/5/original?auto=format&fit=crop&crop=faces&w=44&h=44",
              "48px" : "https://avatars-cdn.producthunt.com/5/original?auto=format&fit=crop&crop=faces&w=48&h=48",
              "50px" : "https://avatars-cdn.producthunt.com/5/original?auto=format&fit=crop&crop=faces&w=50&h=50",
              "60px" : "https://avatars-cdn.producthunt.com/5/original?auto=format&fit=crop&crop=faces&w=60&h=60",
              "64px" : "https://avatars-cdn.producthunt.com/5/original?auto=format&fit=crop&crop=faces&w=64&h=64",
              "73px" : "https://avatars-cdn.producthunt.com/5/original?auto=format&fit=crop&crop=faces&w=73&h=73",
              "80px" : "https://avatars-cdn.producthunt.com/5/original?auto=format&fit=crop&crop=faces&w=80&h=80",
              "88px" : "https://avatars-cdn.producthunt.com/5/original?auto=format&fit=crop&crop=faces&w=88&h=88",
              "96px" : "https://avatars-cdn.producthunt.com/5/original?auto=format&fit=crop&crop=faces&w=96&h=96",
              "100px" : "https://avatars-cdn.producthunt.com/5/original?auto=format&fit=crop&crop=faces&w=100&h=100",
              "110px" : "https://avatars-cdn.producthunt.com/5/original?auto=format&fit=crop&crop=faces&w=110&h=110",
              "120px" : "https://avatars-cdn.producthunt.com/5/original?auto=format&fit=crop&crop=faces&w=120&h=120",
              "132px" : "https://avatars-cdn.producthunt.com/5/original?auto=format&fit=crop&crop=faces&w=132&h=132",
              "146px" : "https://avatars-cdn.producthunt.com/5/original?auto=format&fit=crop&crop=faces&w=146&h=146",
              "160px" : "https://avatars-cdn.producthunt.com/5/original?auto=format&fit=crop&crop=faces&w=160&h=160",
              "176px" : "https://avatars-cdn.producthunt.com/5/original?auto=format&fit=crop&crop=faces&w=176&h=176",
              "220px" : "https://avatars-cdn.producthunt.com/5/original?auto=format&fit=crop&crop=faces&w=220&h=220",
              "264px" : "https://avatars-cdn.producthunt.com/5/original?auto=format&fit=crop&crop=faces&w=264&h=264",
              "32px@2X" : "https://avatars-cdn.producthunt.com/5/original?auto=format&fit=crop&crop=faces&w=64&h=64",
              "40px@2X" : "https://avatars-cdn.producthunt.com/5/original?auto=format&fit=crop&crop=faces&w=80&h=80",
              "44px@2X" : "https://avatars-cdn.producthunt.com/5/original?auto=format&fit=crop&crop=faces&w=88&h=88",
              "88px@2X" : "https://avatars-cdn.producthunt.com/5/original?auto=format&fit=crop&crop=faces&w=176&h=176",
              "32px@3X" : "https://avatars-cdn.producthunt.com/5/original?auto=format&fit=crop&crop=faces&w=96&h=96",
              "40px@3X" : "https://avatars-cdn.producthunt.com/5/original?auto=format&fit=crop&crop=faces&w=120&h=120",
              "44px@3X" : "https://avatars-cdn.producthunt.com/5/original?auto=format&fit=crop&crop=faces&w=132&h=132",
              "88px@3X" : "https://avatars-cdn.producthunt.com/5/original?auto=format&fit=crop&crop=faces&w=264&h=264",
              "original" : "https://avatars-cdn.producthunt.com/5/original?auto=format&fit=crop&crop=faces&w=original&h=original"
            }
          },
          "votes_count" : 0
        },
        {
          "category_id" : 1,
          "comments_count" : 0,
          "day" : "2017-07-13",
          "id" : 3,
          "name" : "Awesome Idea #64",
          "product_state" : "default",
          "tagline" : "Great new search engine",
          "ios_featured_at" : null,
          "created_at" : "2017-07-13T13:31:37.307-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" : [],
          "topics" : [],
          "redirect_url" : "http://www.producthunt.com/r/d0ec40fdd8ef53/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/5c01b66e-15a6-4260-9048-9501988ca8e1?auto=format&fit=crop&h=570&w=430",
            "metadata" : {}
          },
          "user" : {
            "id" : 8,
            "created_at" : "2017-07-13T13:31:37.277-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://avatars-cdn.producthunt.com/8/original?auto=format&fit=crop&crop=faces&w=30&h=30",
              "32px" : "https://avatars-cdn.producthunt.com/8/original?auto=format&fit=crop&crop=faces&w=32&h=32",
              "40px" : "https://avatars-cdn.producthunt.com/8/original?auto=format&fit=crop&crop=faces&w=40&h=40",
              "44px" : "https://avatars-cdn.producthunt.com/8/original?auto=format&fit=crop&crop=faces&w=44&h=44",
              "48px" : "https://avatars-cdn.producthunt.com/8/original?auto=format&fit=crop&crop=faces&w=48&h=48",
              "50px" : "https://avatars-cdn.producthunt.com/8/original?auto=format&fit=crop&crop=faces&w=50&h=50",
              "60px" : "https://avatars-cdn.producthunt.com/8/original?auto=format&fit=crop&crop=faces&w=60&h=60",
              "64px" : "https://avatars-cdn.producthunt.com/8/original?auto=format&fit=crop&crop=faces&w=64&h=64",
              "73px" : "https://avatars-cdn.producthunt.com/8/original?auto=format&fit=crop&crop=faces&w=73&h=73",
              "80px" : "https://avatars-cdn.producthunt.com/8/original?auto=format&fit=crop&crop=faces&w=80&h=80",
              "88px" : "https://avatars-cdn.producthunt.com/8/original?auto=format&fit=crop&crop=faces&w=88&h=88",
              "96px" : "https://avatars-cdn.producthunt.com/8/original?auto=format&fit=crop&crop=faces&w=96&h=96",
              "100px" : "https://avatars-cdn.producthunt.com/8/original?auto=format&fit=crop&crop=faces&w=100&h=100",
              "110px" : "https://avatars-cdn.producthunt.com/8/original?auto=format&fit=crop&crop=faces&w=110&h=110",
              "120px" : "https://avatars-cdn.producthunt.com/8/original?auto=format&fit=crop&crop=faces&w=120&h=120",
              "132px" : "https://avatars-cdn.producthunt.com/8/original?auto=format&fit=crop&crop=faces&w=132&h=132",
              "146px" : "https://avatars-cdn.producthunt.com/8/original?auto=format&fit=crop&crop=faces&w=146&h=146",
              "160px" : "https://avatars-cdn.producthunt.com/8/original?auto=format&fit=crop&crop=faces&w=160&h=160",
              "176px" : "https://avatars-cdn.producthunt.com/8/original?auto=format&fit=crop&crop=faces&w=176&h=176",
              "220px" : "https://avatars-cdn.producthunt.com/8/original?auto=format&fit=crop&crop=faces&w=220&h=220",
              "264px" : "https://avatars-cdn.producthunt.com/8/original?auto=format&fit=crop&crop=faces&w=264&h=264",
              "32px@2X" : "https://avatars-cdn.producthunt.com/8/original?auto=format&fit=crop&crop=faces&w=64&h=64",
              "40px@2X" : "https://avatars-cdn.producthunt.com/8/original?auto=format&fit=crop&crop=faces&w=80&h=80",
              "44px@2X" : "https://avatars-cdn.producthunt.com/8/original?auto=format&fit=crop&crop=faces&w=88&h=88",
              "88px@2X" : "https://avatars-cdn.producthunt.com/8/original?auto=format&fit=crop&crop=faces&w=176&h=176",
              "32px@3X" : "https://avatars-cdn.producthunt.com/8/original?auto=format&fit=crop&crop=faces&w=96&h=96",
              "40px@3X" : "https://avatars-cdn.producthunt.com/8/original?auto=format&fit=crop&crop=faces&w=120&h=120",
              "44px@3X" : "https://avatars-cdn.producthunt.com/8/original?auto=format&fit=crop&crop=faces&w=132&h=132",
              "88px@3X" : "https://avatars-cdn.producthunt.com/8/original?auto=format&fit=crop&crop=faces&w=264&h=264",
              "original" : "https://avatars-cdn.producthunt.com/8/original?auto=format&fit=crop&crop=faces&w=original&h=original"
            }
          },
          "votes_count" : 0
        }
      ]
    }
  }
}