Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
api-docs: Update POST /messages for channel.
Lauryn Menardfd9e9c6207ff
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yamlindex 6d68c3deb5d..f1fa03e5a5d 100644--- a/zerver/openapi/zulip.yaml+++ b/zerver/openapi/zulip.yaml@@ -6465,7 +6465,7 @@ paths:summary: Send a messagetags: ["messages"]description: |- Send a [stream message](/help/introduction-to-topics) or a+ Send a [channel message](/help/introduction-to-topics) or a[direct message](/help/direct-messages).requestBody:required: true@@ -6479,10 +6479,10 @@ paths:The type of message to be sent.`"direct"` for a direct message and `"stream"` or `"channel"` for a- stream message.+ channel message.**Changes**: In Zulip 9.0 (feature level 248), `"channel"` was added as- an additional value for this parameter to request a stream message.+ an additional value for this parameter to request a channel message.In Zulip 7.0 (feature level 174), `"direct"` was added asthe preferred way to request a direct message, deprecating the original@@ -6499,11 +6499,11 @@ paths:example: directto:description: |- For stream messages, either the name or integer ID of the stream. For+ For channel messages, either the name or integer ID of the channel. Fordirect messages, either a list containing integer user IDs or a listcontaining string Zulip API email addresses.- **Changes**: Support for using user/stream IDs was added in Zulip 2.0.0.+ **Changes**: Support for using user/channel IDs was added in Zulip 2.0.0.oneOf:- type: string- type: integer@@ -6519,8 +6519,8 @@ paths:$ref: "#/components/schemas/RequiredContent"topic:description: |- The topic of the message. Only required for stream messages- (`"type": "stream"`), ignored otherwise.+ The topic of the message. Only required for channel messages+ (`"type": "stream"` or `"type": "channel"`), ignored otherwise.Clients should use the `max_topic_length` returned by the[`POST /register`](/api/register-queue) endpoint to determine@@ -6611,7 +6611,7 @@ paths:For example, the Zulip web application uses this field to decide whetherto display a warning or notice suggesting to unmute the topic after- sending a message to a muted stream. Such a notice would be confusing in+ sending a message to a muted channel. Such a notice would be confusing inthe event that the act of sending the message had already resulted in theuser automatically unmuting or following the topic in question.@@ -6632,7 +6632,7 @@ paths:- allOf:- $ref: "#/components/schemas/NonExistingChannelNameError"- description: |- A typical failed JSON response for when a stream message is sent to a stream+ A typical failed JSON response for when a channel message is sent to a channelthat does not exist:- allOf:- $ref: "#/components/schemas/CodedError"@@ -6656,7 +6656,7 @@ paths:description: |An example JSON error response for when the message was rejected becauseof the organization's `wildcard_mention_policy` and large number of- subscribers to the stream.+ subscribers to the channel.**Changes**: New in Zulip 8.0 (feature level 229). Previously, thiserror returned the `"BAD_REQUEST"` code.