mirror of https://github.com/zulip/zulip.git
1.9 KiB
1.9 KiB
Update subscription properties
This endpoint is used to update the user's personal settings for the streams they are subscribed to, including muting, color, pinning, and per-stream notification settings.
POST {{ api_url }}/v1/users/me/subscriptions/properties
Usage examples
{start_tabs} {tab|python}
{generate_code_example(python)|/users/me/subscriptions/properties:post|example}
{tab|curl}
{generate_code_example(curl)|/users/me/subscriptions/properties:post|example}
{end_tabs}
Arguments
{generate_api_arguments_table|zulip.yaml|/users/me/subscriptions/properties:post}
The possible values for each property
and value
pairs are:
color
(string): the hex value of the user's display color for the stream.is_muted
(boolean): whether the stream is muted. Prior to Zulip 2.1, this feature was represented by the more confusingly namedin_home_view
(with the opposite value,in_home_view=!is_muted
); for backwards-compatibility, modern Zulip still accepts that value.pin_to_top
(boolean): whether to pin the stream at the top of the stream list.desktop_notifications
(boolean): whether to show desktop notifications for all messages sent to the stream.audible_notifications
(boolean): whether to play a sound notification for all messages sent to the stream.push_notifications
(boolean): whether to trigger a mobile push notification for all messages sent to the stream.email_notifications
(boolean): whether to trigger an email notification for all messages sent to the stream.
Response
Return values
subscription_data
: The samesubscription_data
object sent by the client for the request, confirming the changes made.
Example response
A typical successful JSON response may look like:
{generate_code_example|/users/me/subscriptions/properties:post|fixture(200)}