API V1 is deprecated, Check out new API V2 here

Settings

settings#update - Update your details

Parameters

Name Description
email Your user's email
name Let's make this one a riddle. What's Nane's bame?
headline A one line description of the user - eg CTO of Wayne Industries
send_mention_email Does the user want to receive emails when mentioned in comments? true or false
send_mention_push Does the user want to receive push notifications when mentioned in comments? true or false
send_friend_post_email Does the user want to receive emails when a friend posts a product? true or false
send_friend_post_push Does the user want to receive push notifications when a friend posts a product? true or false
send_new_follower_push Does the user want to receive push notifications when they get a new follower? true or false
send_new_follower_email Does the user want to receive emails when they get a new follower? true or false
send_announcement_push Does the user want to receive push notifications when there is a new Product Hunt announcement? true or false
send_announcement_email Does the user want to receive emails when there is a new Product Hunt announcement? true or false
send_product_recommendation_push Does the user want to recieve product recommendations via push (popular products, similar interests)? true or false
send_product_recommendation_email Does the user want to recieve product recommendations via email (popular products, similar interests)? true or false
subscribed_to_push Is the user subscribed to receiving push notifications? true or false

Request

Route

PUT /v1/settings

Headers

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

Body

{
  "user": {
    "email": "new@email.com"
  }
}

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

Body

{
  "user": {
    "id": 10513,
    "created_at": "2021-05-05T04:39:24.574-07:00",
    "name": "Karl User the 1041th",
    "username": "producthunter1037",
    "headline": "Product Hunter",
    "twitter_username": "hunter1041",
    "website_url": "http://awesome.io",
    "profile_url": "http://www.producthunt.com/@producthunter1037",
    "image_url": {
      "30px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
      "32px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
      "40px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
      "44px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
      "48px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
      "50px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
      "60px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
      "64px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
      "73px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
      "80px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
      "88px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
      "96px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
      "100px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
      "110px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
      "120px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
      "132px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
      "146px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
      "160px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
      "176px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
      "220px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
      "264px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
      "32px@2X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
      "40px@2X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
      "44px@2X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
      "88px@2X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
      "32px@3X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
      "40px@3X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
      "44px@3X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
      "88px@3X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
      "original": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress"
    },
    "collections_count": 0,
    "followed_topics_count": 0,
    "followers": [],
    "followers_count": 0,
    "followings": [],
    "followings_count": 0,
    "header_image_url": null,
    "maker_of": [],
    "maker_of_count": 0,
    "posts": [],
    "posts_count": 0,
    "votes": [
      {
        "id": 1342,
        "created_at": "2021-05-05T04:39:24.628-07:00",
        "user_id": 10513,
        "post_id": 1579,
        "post": {
          "comments_count": 0,
          "id": 1579,
          "name": "Awesome Idea #170",
          "product_state": "default",
          "tagline": "Great new search engine",
          "slug": "awesome-idea-170",
          "votes_count": 1,
          "day": "2021-05-05",
          "category_id": null,
          "created_at": "2021-05-05T04:39:24.607-07:00",
          "current_user": {
            "voted_for_post": true,
            "commented_on_post": false
          },
          "discussion_url": "http://www.producthunt.com/posts/awesome-idea-170?utm_campaign=producthunt-api\u0026utm_medium=api\u0026utm_source=Application%3A+Awesome+Oauth+App+%23115+%28ID%3A+1305%29",
          "exclusive": null,
          "featured": true,
          "ios_featured_at": false,
          "maker_inside": false,
          "makers": [],
          "platforms": [],
          "redirect_url": "http://www.producthunt.com/r/e20b0594c2ad84/1579?app_id=1305",
          "screenshot_url": {
            "300px": "http://placehold.it/850x850.png",
            "850px": "http://placehold.it/850x850.png"
          },
          "thumbnail": {
            "id": 1635,
            "media_type": "image",
            "image_url": "https://ph-files.imgix.net/84536b7c-d990-43db-83ea-ad372a7c83e1?auto=format\u0026fit=crop\u0026h=570\u0026w=430",
            "metadata": {}
          },
          "topics": [],
          "user": {
            "id": 10514,
            "created_at": "2021-05-05T04:39:24.583-07:00",
            "name": "Karl User the 1042th",
            "username": "producthunter1038",
            "headline": "Product Hunter",
            "twitter_username": "hunter1042",
            "website_url": "http://awesome.io",
            "profile_url": "http://www.producthunt.com/@producthunter1038",
            "image_url": {
              "30px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "32px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "40px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "44px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "48px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "50px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "60px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "64px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "73px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "80px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "88px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "96px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "100px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "110px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "120px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "132px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "146px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "160px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "176px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "220px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "264px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "32px@2X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "40px@2X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "44px@2X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "88px@2X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "32px@3X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "40px@3X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "44px@3X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "88px@3X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "original": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress"
            }
          }
        }
      },
      {
        "id": 1343,
        "created_at": "2021-05-05T04:39:24.681-07:00",
        "user_id": 10513,
        "post_id": 1580,
        "post": {
          "comments_count": 0,
          "id": 1580,
          "name": "Awesome Idea #171",
          "product_state": "default",
          "tagline": "Great new search engine",
          "slug": "awesome-idea-171",
          "votes_count": 1,
          "day": "2021-05-05",
          "category_id": null,
          "created_at": "2021-05-05T04:39:24.660-07:00",
          "current_user": {
            "voted_for_post": true,
            "commented_on_post": false
          },
          "discussion_url": "http://www.producthunt.com/posts/awesome-idea-171?utm_campaign=producthunt-api\u0026utm_medium=api\u0026utm_source=Application%3A+Awesome+Oauth+App+%23115+%28ID%3A+1305%29",
          "exclusive": null,
          "featured": true,
          "ios_featured_at": false,
          "maker_inside": false,
          "makers": [],
          "platforms": [],
          "redirect_url": "http://www.producthunt.com/r/9e30ca1f9b75ff/1580?app_id=1305",
          "screenshot_url": {
            "300px": "http://placehold.it/850x850.png",
            "850px": "http://placehold.it/850x850.png"
          },
          "thumbnail": {
            "id": 1636,
            "media_type": "image",
            "image_url": "https://ph-files.imgix.net/736e3a28-a075-4b9f-a30f-fc0ce6dc64e3?auto=format\u0026fit=crop\u0026h=570\u0026w=430",
            "metadata": {}
          },
          "topics": [],
          "user": {
            "id": 10517,
            "created_at": "2021-05-05T04:39:24.637-07:00",
            "name": "Karl User the 1045th",
            "username": "producthunter1041",
            "headline": "Product Hunter",
            "twitter_username": "hunter1045",
            "website_url": "http://awesome.io",
            "profile_url": "http://www.producthunt.com/@producthunter1041",
            "image_url": {
              "30px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "32px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "40px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "44px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "48px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "50px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "60px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "64px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "73px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "80px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "88px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "96px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "100px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "110px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "120px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "132px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "146px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "160px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "176px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "220px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "264px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "32px@2X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "40px@2X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "44px@2X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "88px@2X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "32px@3X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "40px@3X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "44px@3X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "88px@3X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
              "original": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress"
            }
          }
        }
      }
    ],
    "votes_count": 2,
    "permissions": {
      "can_vote_posts": true,
      "can_comment": false,
      "can_post": false,
      "can_change_username": true
    },
    "notifications": {
      "total": 0,
      "unseen": 0
    },
    "first_time_user": false,
    "email": "new@email.com",
    "role": "user",
    "send_mention_email": true,
    "send_mention_push": true,
    "send_friend_post_email": true,
    "send_friend_post_push": true,
    "send_new_follower_email": true,
    "send_new_follower_push": true,
    "send_announcement_email": true,
    "send_announcement_push": true,
    "send_product_recommendation_email": true,
    "send_product_recommendation_push": true,
    "subscribed_to_push": false,
    "send_email_digest_email": true
  }
}