Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

api-docs: Add changelog for `stream_id` param to `mute-topic`.

Lauryn Menard7ceb5f6311c0
diff --git a/templates/zerver/api/changelog.md b/templates/zerver/api/changelog.md
index d061c10825b..82ba8f60d79 100644
--- a/templates/zerver/api/changelog.md
+++ b/templates/zerver/api/changelog.md
@@ -1080,6 +1080,9 @@ No changes; feature level used for Zulip 3.0 release.
## Changes in Zulip 2.0
+* [`PATCH /users/me/subscriptions/muted_topics`](/api/mute-topic):
+ Added support for using stream IDs to specify the stream in which to
+ mute/unmute a topic.
* [`POST /messages`](/api/send-message): Added support for using user
IDs and stream IDs for specifying the recipients of a message.
* [`POST /messages`](/api/send-message), [`POST
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml
index 862fb7a40ec..57df8e858fb 100644
--- a/zerver/openapi/zulip.yaml
+++ b/zerver/openapi/zulip.yaml
@@ -7447,22 +7447,31 @@ paths:
enum:
- stream_id
parameters:
- - name: stream
- in: query
- description: |
- The name of the stream to access.
- schema:
- type: string
- example: Denmark
- required: false
- name: stream_id
in: query
description: |
The ID of the stream to access.
+
+ Clients must provide either `stream` or `stream_id` as a parameter
+ to this endpoint, but not both.
+
+ **Changes**: New in Zulip 2.0.
schema:
type: integer
example: 43
required: false
+ - name: stream
+ in: query
+ description: |
+ The name of the stream to access.
+
+ Clients must provide either `stream` or `stream_id` as a parameter
+ to this endpoint, but not both. Clients should use `stream_id`
+ instead of the `stream` parameter when possible.
+ schema:
+ type: string
+ example: Denmark
+ required: false
- name: topic
in: query
description: |