2020-06-19 07:30:42 +02:00
|
|
|
# Update subscription settings
|
2018-07-12 10:09:50 +02:00
|
|
|
|
2020-04-28 20:00:46 +02:00
|
|
|
{generate_api_description(/users/me/subscriptions/properties:post)}
|
2018-07-12 10:09:50 +02:00
|
|
|
|
|
|
|
## Usage examples
|
|
|
|
|
2018-10-18 00:14:30 +02:00
|
|
|
{start_tabs}
|
|
|
|
{tab|python}
|
2018-07-12 10:09:50 +02:00
|
|
|
|
2018-10-18 00:14:30 +02:00
|
|
|
{generate_code_example(python)|/users/me/subscriptions/properties:post|example}
|
|
|
|
|
|
|
|
{tab|curl}
|
2018-07-12 10:09:50 +02:00
|
|
|
|
2019-10-10 11:06:47 +02:00
|
|
|
{generate_code_example(curl)|/users/me/subscriptions/properties:post|example}
|
2018-07-12 10:09:50 +02:00
|
|
|
|
2018-10-18 00:14:30 +02:00
|
|
|
{end_tabs}
|
2018-07-12 10:09:50 +02:00
|
|
|
|
2020-06-18 15:35:25 +02:00
|
|
|
## Parameters
|
2018-07-12 10:09:50 +02:00
|
|
|
|
|
|
|
{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.
|
2019-06-06 21:05:49 +02:00
|
|
|
* `is_muted` (boolean): whether the stream is
|
|
|
|
[muted](/help/mute-a-stream). Prior to Zulip 2.1, this feature was
|
|
|
|
represented by the more confusingly named `in_home_view` (with the
|
|
|
|
opposite value, `in_home_view=!is_muted`); for
|
|
|
|
backwards-compatibility, modern Zulip still accepts that value.
|
2018-07-12 10:09:50 +02:00
|
|
|
* `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.
|
2019-06-06 21:05:49 +02:00
|
|
|
* `email_notifications` (boolean): whether to trigger an email
|
|
|
|
notification for all messages sent to the stream.
|
2018-07-12 10:09:50 +02:00
|
|
|
|
|
|
|
## Response
|
|
|
|
|
|
|
|
#### Return values
|
|
|
|
|
|
|
|
* `subscription_data`: The same `subscription_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)}
|