-
Versions
Concepts
Resources
- Attachment
- Bulk-Export
- Bulk-Import
- Comment
- Countries
- Heartbeat
- Notification
- Question
- Question Follow
- Question Forward
- Question Updates
- Search
- Share content
- Settings
- Solution
- Tag
- User
User Settings Resources
You can find a list of all available user settings here.
Get the List of Settings
Request as admin user
GET /users/:id/settings
or for requesting the settings of the current session user
GET /users/me/settings
Get a list of all available user settings and their current state.
{
"communication_channels": {
"email": {
"email_behavior": "auto",
"hint_email_enabled": true,
"notifications": {
"new_comment_to_your_question": "on",
"new_question_random_user": "on",
...
},
"reminder_download_mobile_app_email_enabled": "false"
},
"skype": {
"behavior": "auto",
"notifications": {
"new_comment_to_your_question": "on",
"new_question_random_user": "on",
...
}
}
},
"languages": {
"content_languages": ["en", "it", "es", "de", "fr"],
"has_all_languages": true,
"interface_language": "en"
}
}
Modify user settings
As admin user
PUT /users/:id/settings
or for changing the settings of the current session user
PUT /users/me/settings
{
"communication_channels": {
"email": {
"email_behavior": "auto",
"hint_email_enabled": true,
"notifications": {
"new_comment_to_your_question": "on",
"new_question_random_user": "on",
...
},
"reminder_download_mobile_app_email_enabled": "true"
}
}
}
Put a JSON with the modified setting. The settings and data types can be checked here.
Response
The response will be all available settings including the modified values.
{
"communication_channels": {
"email": {
"email_behavior": "auto",
"hint_email_enabled": true,
"notifications": {
"new_comment_to_your_question": "on",
"new_question_random_user": "on",
...
},
"reminder_download_mobile_app_email_enabled": "true"
},
"skype": {
"behavior": "auto",
"notifications": {
"new_comment_to_your_question": "on",
"new_question_random_user": "on",
...
}
}
},
"languages": {
"content_languages": ["en", "it", "es", "de", "fr"],
"has_all_languages": true,
"interface_language": "en"
}
}