PATCH /streams/{stream_id}
Configure the channel with the ID stream_id. This endpoint supports
an organization administrator editing any property of a channel,
including:
- Channel name and description
- Channel permissions, including privacy and who can send.
Note that an organization administrator's ability to change a private channel's permissions depends on them being subscribed to the channel.
Changes: Before Zulip 10.0 (feature level 362), channel privacy could not be edited for archived channels.
Removed stream_post_policy and is_announcement_only
parameters in Zulip 10.0 (feature level 333), as permission to post
in the channel is now controlled by can_send_message_group.
Servers
- https://{subdomain}.zulipchat.com/api/v1
- {server}/api/v1
- https://chat.zulip.org/api/v1
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
stream_id |
Integer | Yes |
The ID of the channel to access. |
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/x-www-form-urlencoded" |
Request body fields
| Name | Type | Required | Description |
|---|---|---|---|
folder_id |
Integer | No |
ID of the new channel folder to which the channel should belong. A Changes: New in Zulip 11.0 (feature level 389). |
is_web_public |
Boolean | No |
Change whether the channel is a web-public channel. Note that creating web-public channels requires the
Changes: New in Zulip 5.0 (feature level 98). |
description |
String | No |
The new description for the channel, in Zulip-flavored Markdown format. Clients should use the Changes: Removed unnecessary JSON-encoding of this parameter in Zulip 4.0 (feature level 64). |
is_default_stream |
Boolean | No |
Add or remove the channel as a default channel for new users joining the organization. Changes: New in Zulip 8.0 (feature level 200). Previously, default channel status could only be changed using the dedicated API endpoint. |
message_retention_days |
No |
Number of days that messages sent to this channel will be stored before being automatically deleted by the message retention policy. Two special string format values are supported:
Changes: Prior to Zulip 5.0 (feature level 91), retaining
messages forever was encoded using New in Zulip 3.0 (feature level 17). |
|
new_name |
String | No |
The new name for the channel. Clients should use the Changes: Removed unnecessary JSON-encoding of this parameter in Zulip 4.0 (feature level 64). |
history_public_to_subscribers |
Boolean | No |
Whether the channel's message history should be available to newly subscribed members, or users can only access messages they actually received while subscribed to the channel. Corresponds to the shared history option for private channels. It's an error for this parameter to be false for a public or web-public channel and when is_private is false. This can only be Changes: Before Zulip 6.0 (feature level 136), |
topics_policy |
String | No |
Whether named topics and the empty topic (i.e., "general chat" topic) are enabled in this channel.
The When creating a new channel, if the Changes: In Zulip 11.0 (feature level 404), the New in Zulip 11.0 (feature level 392). Valid values:
|
is_private |
Boolean | No |
Change whether the channel is a private channel. |
is_archived |
Boolean | No |
A boolean indicating whether the channel is archived or unarchived. Currently only allows unarchiving previously archived channels. Changes: New in Zulip 11.0 (feature level 388). |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.