# Edit User Settings

`PUT https://api.torbox.app/v1/api/user/settings/editsettings`

- Operation ID: `edit_user_settings`
- Group: User
- Auth: API key, `Authorization: Bearer <api key>` (Sign in with TorBox gives the same key)

### Overview

Edits a user's TorBox settings. These values take effect immediately. Please view the body to read about allowed options and parameters.

To get the user settings, simply use the "[Get User Data](https://api.torbox.app/docs#/User/get_user_data)" endpoint, while sending the "?settings=true" parameter

### Authorization

Requires an API key using the Authorization Bearer Header.

## Request body (`application/json`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `email_notifications` | boolean | no | When the user recieves a notification, send to registered email |
| `web_notifications` | boolean | no | When the user recieves a notification, send to web (if browser is open, otherwise it will be in their notifications panel) |
| `mobile_notifications` | boolean | no | When the user recieves a notification, send to TorBox mobile app (deprecated) |
| `rss_notifications` | boolean | no | When the user recieves a notification, add to user's RSS feed |
| `download_speed_in_tab` | boolean | no | Shows download speed in tab name in browser when using the TorBox dashboard. Third party apps may still use this setting. |
| `show_tracker_in_torrent` | boolean | no | Shows active tracker in torrents on the TorBox dashboard. Third party apps may still use this setting. |
| `stremio_quality` | integer[] | no | Determines what qualities are shown to the user when using the TorBox Stremio addon. It is always recommended to include 0 (Unknown). Third party apps may still use this setting. - `0`: Unknown Quality - `1`: Cam Quality - `2`: DVD-R Quality - `3`: HDTV Quality - `4`: HDRip Quality - `5`: WEB-DL Quality - `6`: WEBRip Quality - `7`: Blu-Ray/BD/BDRip Quality - `8`: HDR Quality - `9`: HDR10 Quality - `10`: HDR10+ Quality - `11`: Dolby Vision Quality |
| `stremio_resolution` | integer[] | no | Determines what resolutions are shown to the user. It is always recommended to include 0 (Unknown). Third party apps may still use this setting. - `0`: Unknown Resolution - `1`: SD Resolution - `2`: HD Resolution - `3`: UHD Resolution |
| `stremio_language` | integer[] | no | Determines what languages are shown to the user. It is always recommended to include 0 (Unknown). Third party apps may still use this setting. - `0`: Unknown - `1`: English - `2`: Spanish - `3`: French - `4`: German - `5`: Italian - `6`: Portuguese - `7`: Russian - `8`: Japanese - `9`: Korean - `10`: Chinese - `11`: Arabic - `12`: Hindi - `13`: Bengali - `14`: Ukrainian - `15`: Nordic - `16`: Czech - `17`: Polish - `18`: Tamil - `19`: Telugu - `20`: Kannada - `21`: Dutch |
| `stremio_cache` | integer[] | no | Determines what cached status items to show to users. While this is an array, only a single value is accepted at a time to prevent issues. Still submit this as an array to the API. Third party apps may still use this setting. - `1`: Cached and Download - `2`: Cached Only - `3`: Download Only |
| `stremio_size_lower` | integer | no | The minimum size of files that will be shown to the user in the TorBox Stremio addon. Third party apps may still use this setting. |
| `google_drive_folder_id` | string | no |  |
| `onedrive_save_path` | string | no |  |
| `discord_id` | string | no |  |
| `discord_notifications` | boolean | no | When the user recieves a notification, use the official TorBox Discord Bot to DM the user the notification. Must have a Discord_ID present and must share a server with the Discord Bot. |
| `stremio_allow_adult` | boolean | no | Determines whether to show adult content on the TorBox Stremio addon. Third party apps may still use this setting. |
| `stremio_seed_torrents` | integer | no | 1 = Auto, 2 = Always, 3 = Never |
| `seed_torrents` | integer | no | 1 = Auto, 2 = Always, 3 = Never |
| `allow_zipped` | boolean | no |  |
| `stremio_allow_zipped` | boolean | no |  |
| `onefichier_folder_id` | string | no |  |
| `gofile_folder_id` | string | no |  |
| `webhook_notifications` | boolean | no |  |
| `webhook_url` | string | no |  |
| `telegram_notifications` | boolean | no |  |
| `telegram_id` | string | no |  |
| `mega_email` | string | no |  |
| `mega_password` | string | no |  |
| `stremio_sort` | string | no | seeders = Seeders/Age (highest seeders first/lowest age first), size = Size (highest size first), resolution = Resolution (highest resolution first) |
| `cdn_selection` | string | no | any available CDN. Can be found using test file route |
| `stremio_use_custom_search_engines` | boolean | no |  |
| `stremio_result_sort` | string | no | torrents = Torrents first, usenet = Usenet first |
| `webdav_use_local_files` | boolean | no |  |
| `stremio_legacy_your_media` | boolean | no |  |
| `stremio_only_your_media_streams` | boolean | no | only shows Your Media streams in Stremio addon |
| `stremio_disable_your_media_streams` | boolean | no |  |
| `webdav_use_folder_view` | boolean | no |  |
| `webdav_flatten` | boolean | no |  |
| `stremio_limit_per_resolution_torrent` | integer | no |  |
| `stremio_limit_per_resolution_usenet` | integer | no |  |
| `stremio_size_upper` | integer | no |  |
| `stremio_torrent_seeders_cutoff` | integer | no |  |
| `pixeldrain_api_key` | string | no |  |
| `onefichier_api_key` | string | no |  |
| `gofile_api_key` | string | no |  |
| `patreon_id` | string | no |  |
| `stremio_wait_for_download_usenet` | boolean | no |  |
| `stremio_wait_for_download_torrent` | boolean | no |  |
| `stremio_disable_filtered_note` | boolean | no |  |
| `stremio_emoji_in_description` | boolean | no |  |
| `dashboard_filter` | object | no | sorts the user's dashboard. Does not affect third party dashboards. This entire dict MUST be presented with all keys for any update to be given. |
| `web_player_always_transcode` | boolean | no |  |
| `web_player_always_skip_intro` | boolean | no |  |
| `web_player_audio_preferred_language` | string | no |  |
| `web_player_subtitle_preferred_language` | string | no |  |
| `web_player_disable_prestream_selector` | boolean | no |  |
| `dashboard_sort` | string | no | default = TorBox default sorting, name = AZ sorting, size = largest size first, added_date = newest first, cached_date = newest first, last_updated = newest first, progress = highest progress first, ratio = highest ratio first, download_speed = highest value first, upload_speed = highest value first, eta = smallest eta first |
| `web_player_disable_next_up_dialogue` | boolean | no |  |
| `web_player_enable_scrobbling` | boolean | no |  |
| `append_filename_to_links` | boolean | no |  |
| `subscribed_email_segments` | string[] | no |  |
| `disable_ai` | boolean | no |  |

## Responses

- `200` Successful Response
- `400` Bad Request
- `401` Unauthorized
- `403` Forbidden
- `404` Not Found
- `422` Validation Error
- `429` Too Many Requests
- `500` Internal Server Error
- `503` Service Unavailable
