API V1 is deprecated, Check out new API V2 here
Settings
unprocessable_entity: settings#update - Update with incorrect values
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": {
"name": "",
"twitter_uid": 1
}
}
Response
Status
422 Unprocessable Entity
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
Cache-Control: no-cache
Content-Length: 173
Body
{
"error": "unprocessable_entity",
"error_description": "We could not save the resource, most likely the given parameters where incorrect",
"details": {
"name": [
"can't be blank"
]
}
}