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

Body

{
  "user" : {
    "id" : 593,
    "created_at" : "2017-09-14T06:02:46.194-07:00",
    "name" : "Karl User the 1083th",
    "username" : "producthunter1079",
    "headline" : "Product Hunter",
    "twitter_username" : "hunter1083",
    "website_url" : "http://awesome.io",
    "profile_url" : "http://www.producthunt.com/@producthunter1079",
    "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"
    },
    "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" : 69,
        "created_at" : "2017-09-14T06:02:46.265-07:00",
        "user_id" : 593,
        "post_id" : 77,
        "post" : {
          "comments_count" : 0,
          "day" : "2017-09-14",
          "id" : 77,
          "name" : "Awesome Idea #171",
          "product_state" : "default",
          "tagline" : "Great new search engine",
          "ios_featured_at" : null,
          "category_id" : null,
          "created_at" : "2017-09-14T06:02:46.222-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&utm_medium=api&utm_source=Application%3A+Awesome+Oauth+App+%23118+%28ID%3A+68%29",
          "exclusive" : null,
          "featured" : true,
          "maker_inside" : false,
          "makers" : [],
          "platforms" : [],
          "redirect_url" : "http://www.producthunt.com/r/f338b48c22ef2c/77?app_id=68",
          "screenshot_url" : {
            "300px" : "http://placehold.it/850x850.png",
            "850px" : "http://placehold.it/850x850.png"
          },
          "thumbnail" : {
            "id" : 77,
            "media_type" : "image",
            "image_url" : "https://ph-files.imgix.net/ede30a5c-3ade-4ac0-b51b-fa299b79e3ea?auto=format&fit=crop&h=570&w=430",
            "metadata" : {}
          },
          "topics" : [],
          "user" : {
            "id" : 594,
            "created_at" : "2017-09-14T06:02:46.203-07:00",
            "name" : "Karl User the 1084th",
            "username" : "producthunter1080",
            "headline" : "Product Hunter",
            "twitter_username" : "hunter1084",
            "website_url" : "http://awesome.io",
            "profile_url" : "http://www.producthunt.com/@producthunter1080",
            "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" : 1
        }
      },
      {
        "id" : 70,
        "created_at" : "2017-09-14T06:02:46.342-07:00",
        "user_id" : 593,
        "post_id" : 78,
        "post" : {
          "comments_count" : 0,
          "day" : "2017-09-14",
          "id" : 78,
          "name" : "Awesome Idea #172",
          "product_state" : "default",
          "tagline" : "Great new search engine",
          "ios_featured_at" : null,
          "category_id" : null,
          "created_at" : "2017-09-14T06:02:46.301-07:00",
          "current_user" : {
            "voted_for_post" : true,
            "commented_on_post" : false
          },
          "discussion_url" : "http://www.producthunt.com/posts/awesome-idea-172?utm_campaign=producthunt-api&utm_medium=api&utm_source=Application%3A+Awesome+Oauth+App+%23118+%28ID%3A+68%29",
          "exclusive" : null,
          "featured" : true,
          "maker_inside" : false,
          "makers" : [],
          "platforms" : [],
          "redirect_url" : "http://www.producthunt.com/r/18c156cd2153d3/78?app_id=68",
          "screenshot_url" : {
            "300px" : "http://placehold.it/850x850.png",
            "850px" : "http://placehold.it/850x850.png"
          },
          "thumbnail" : {
            "id" : 78,
            "media_type" : "image",
            "image_url" : "https://ph-files.imgix.net/24427157-35da-46ef-9b17-538e9165b50d?auto=format&fit=crop&h=570&w=430",
            "metadata" : {}
          },
          "topics" : [],
          "user" : {
            "id" : 597,
            "created_at" : "2017-09-14T06:02:46.281-07:00",
            "name" : "Karl User the 1087th",
            "username" : "producthunter1083",
            "headline" : "Product Hunter",
            "twitter_username" : "hunter1087",
            "website_url" : "http://awesome.io",
            "profile_url" : "http://www.producthunt.com/@producthunter1083",
            "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" : 1
        }
      }
    ],
    "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
  }
}