Set Preferences
HTTP Method | URL | Requires Auth |
---|---|---|
|
|
If you want to edit another user's preferences, you need the permission edit-other-user-info
.
Body Parameters
Key | Example Value | Description |
---|---|---|
|
| The user ID whose preferences you want to change. If an ID is not provided, the preferences will be set for the user who is sending the request. |
|
| The object with the following preference details. |
|
| The preferred language for the user. |
|
| New room notification sound. |
|
| New message notification sound. |
|
| A boolean value that indicates whether the user has enabled the option to mute focused conversations. |
|
| The valid display formats for the clock. You can enter the values
|
|
| A boolean value that indicates whether the user has enabled the option to use emojis. |
|
| A boolean value that indicates whether the user has enabled the option to convert ASCII emojis. |
|
| A boolean value that indicates whether the user has enabled the option to save mobile bandwidth. |
|
| A boolean value that indicates whether the user has enabled the option to collapse media by default. |
|
| A boolean value indicates whether the user has enabled the option to load images automatically. |
|
| The preferred mode for email notifications. |
|
| A boolean value indicates whether the user has enabled the option. |
|
| The sound volume for notifications. |
|
| The type of desktop notifications.
|
|
| The mobile push notification.
|
|
| A boolean value that indicates whether the user has enabled the option to update the status as away after a certain amount of idle time. |
|
| The message highlights section. You will be notified when someone mentions a word or phrase that you add here. Highlight words are not case-sensitive. |
|
| The preferred view mode for the messages. The available options are:
|
|
| A boolean value that indicates whether the user has enabled the option to hide usernames. |
|
| A boolean value that indicates whether the user has enabled the option to hide roles. |
|
| A boolean value that indicates whether the user has enabled the option to display user avatars. |
|
| A boolean value that indicates whether the user has enabled the option. |
|
| Set how you want the Enter key to behave when sending messages.
|
|
| The time limit that is to be considered as idle time. |
|
| A boolean value that indicates whether the user has enabled the option to show favorites on the sidebar. |
|
| A boolean value that indicates whether the user has enabled the option to show unread messages in the sidebar. |
|
| To sort the messages in the sidebar alphabetically or by activity. The values can be:
|
|
| The view mode of the sidebar. The values can be:
|
|
| A boolean value that indicates whether the user has enabled the option to display avatars in the sidebar. |
|
| A boolean value that indicates whether the user has enabled the option to show the grouped values in the sidebar. |
|
| This field stores all the "warnings" a user opted not to be displayed again. An example where this works is when hiding a room. |
Example Call
Example Result
Version | Description |
---|---|
2.3.0 | Added |
Last updated