User settings
User authentication is always required for this endpoint.
Some notification settings have support for emails. To set these you should append "_email" to the end of the setting.
Example: "notification-newsitems" should be "notification-newsitems_email" if trying to set email preference
Retrieves user settings from a single user.
PUT https://api.bundeling.com/V2/user_settings
Parameters
Url
Name | Description | Type |
---|
uuid | A unique identifier used to identify a user | string |
Body
Name | Description | Type | Nillable |
---|
settings | A list of settings | json | false |
Example request
Headers
Body
{
"settings": {
"notification-newsitems": true,
"notification-events": true,
"notification-events_email": true,
"notification-messages": true,
"notification-chat": false
}
}
Example response
{
"uuid": "eeb763c41c054dcc8f6d9362f24ee9b2",
"settings": {
"notification-newsitems": true,
"notification-newsitems_email": false,
"notification-matches": false,
"notification-matches_email": false,
"notification-events": true,
"notification-events_email": true,
"notification-polls": true,
"notification-polls_email": true,
"notification-messages": true,
"notification-messages_email": true,
"notification-chat": false
}
}