2020-06-19 07:30:42 +02:00
|
|
|
# Update a stream
|
2019-06-23 14:38:28 +02:00
|
|
|
|
2020-04-28 20:00:46 +02:00
|
|
|
{generate_api_description(/streams/{stream_id}:patch)}
|
2019-06-23 14:38:28 +02:00
|
|
|
|
|
|
|
## Usage examples
|
|
|
|
|
|
|
|
{start_tabs}
|
|
|
|
{tab|python}
|
|
|
|
|
|
|
|
{generate_code_example(python)|/streams/{stream_id}:patch|example}
|
|
|
|
|
|
|
|
{tab|curl}
|
|
|
|
|
2019-10-18 08:47:27 +02:00
|
|
|
{generate_code_example(curl, include=["new_name", "description", "is_private"])|/streams/{stream_id}:patch|example}
|
2019-06-23 14:38:28 +02:00
|
|
|
|
|
|
|
{end_tabs}
|
|
|
|
|
2020-06-18 15:35:25 +02:00
|
|
|
## Parameters
|
2019-06-23 14:38:28 +02:00
|
|
|
|
|
|
|
{generate_api_arguments_table|zulip.yaml|/streams/{stream_id}:patch}
|
|
|
|
|
|
|
|
## Response
|
|
|
|
|
|
|
|
#### Example response
|
|
|
|
|
|
|
|
A typical successful JSON response may look like:
|
|
|
|
|
|
|
|
{generate_code_example|/streams/{stream_id}:patch|fixture(200)}
|
|
|
|
|
|
|
|
An example JSON response for when the supplied stream does not exist:
|
|
|
|
|
|
|
|
{generate_code_example|/streams/{stream_id}:patch|fixture(400)}
|