2018-07-10 08:17:35 +02:00
|
|
|
# Topic muting
|
|
|
|
|
2020-04-28 20:00:46 +02:00
|
|
|
{generate_api_description(/users/me/subscriptions/muted_topics:patch)}
|
2018-07-10 08:17:35 +02:00
|
|
|
|
|
|
|
## Usage examples
|
|
|
|
|
2018-09-17 16:27:32 +02:00
|
|
|
{start_tabs}
|
|
|
|
{tab|python}
|
2018-07-10 08:17:35 +02:00
|
|
|
|
2018-09-17 16:27:32 +02:00
|
|
|
{generate_code_example(python)|/users/me/subscriptions/muted_topics:patch|example}
|
|
|
|
|
|
|
|
{tab|curl}
|
2018-07-10 08:17:35 +02:00
|
|
|
|
2019-10-11 14:19:38 +02:00
|
|
|
{generate_code_example(curl, exclude=["stream_id"])|/users/me/subscriptions/muted_topics:patch|example}
|
2018-07-10 08:17:35 +02:00
|
|
|
|
2018-09-17 16:27:32 +02:00
|
|
|
{end_tabs}
|
2018-07-10 08:17:35 +02:00
|
|
|
|
2020-06-18 15:35:25 +02:00
|
|
|
## Parameters
|
2018-07-10 08:17:35 +02:00
|
|
|
|
|
|
|
{generate_api_arguments_table|zulip.yaml|/users/me/subscriptions/muted_topics:patch}
|
|
|
|
|
|
|
|
## Response
|
|
|
|
|
|
|
|
#### Example response
|
|
|
|
|
|
|
|
A typical successful JSON response may look like:
|
|
|
|
|
|
|
|
{generate_code_example|/users/me/subscriptions/muted_topics:patch|fixture(200)}
|
|
|
|
|
|
|
|
|
|
|
|
An example JSON response for when an `add` operation is requested for a topic
|
|
|
|
that has already been muted:
|
|
|
|
|
2020-04-17 19:16:43 +02:00
|
|
|
{generate_code_example|/users/me/subscriptions/muted_topics:patch|fixture(400_0)}
|
2018-07-10 08:17:35 +02:00
|
|
|
|
|
|
|
An example JSON response for when a `remove` operation is requested for a
|
|
|
|
topic that had not been previously muted:
|
|
|
|
|
2020-04-17 19:16:43 +02:00
|
|
|
{generate_code_example|/users/me/subscriptions/muted_topics:patch|fixture(400_1)}
|