Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
api-docs: Centralize history of realm message edit/move settings.
Lauryn Menard229212106fba
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yamlindex 9f6f7c4f7d6..84737117fa8 100644--- a/zerver/openapi/zulip.yaml+++ b/zerver/openapi/zulip.yaml@@ -4272,8 +4272,13 @@ paths:allow_message_editing:type: booleandescription: |- Whether this organizations [message edit policy](/help/restrict-message-editing-and-deletion)+ Whether this organization's [message edit policy][config-message-editing]allows editing the content of messages.++ See [`PATCH /messages/{message_id}`](/api/update-message) for details and+ history of how message editing permissions work.++ [config-message-editing]: /help/restrict-message-editing-and-deletionauthentication_methods:type: objectadditionalProperties:@@ -4483,10 +4488,12 @@ paths:- 5 = Everyone- 6 = Nobody+ See [`PATCH /messages/{message_id}`](/api/update-message) for details and history+ of how message editing permissions work.+**Changes**: Nobody added as an option in Zulip 7.0 (feature level 159).- New in Zulip 5.0 (feature level 75), replacing the previous- `allow_community_topic_editing` boolean.+ New in Zulip 5.0 (feature level 75).[permission-level]: /api/roles-and-permissions#permission-levels[calc-full-member]: /api/roles-and-permissions#determining-if-a-user-is-a-full-member@@ -4607,8 +4614,14 @@ paths:with this organization's[message edit policy](/help/restrict-message-editing-and-deletion).- **Changes**: No limit was represented using the- special value `0` before Zulip 6.0 (feature level 138).+ Will not be `0`. A `null` value means no limit, so messages can be edited+ regardless of how long ago they were sent.++ See [`PATCH /messages/{message_id}`](/api/update-message) for details and+ history of how message editing permissions work.++ **Changes**: Before Zulip 6.0 (feature level 138), no limit was+ represented using the special value `0`.move_messages_within_stream_limit_seconds:type: integernullable: true@@ -4618,9 +4631,12 @@ paths:organization's [topic edit policy](/help/restrict-moving-messages). Thissetting does not affect moderators and administrators.- Will not be 0. A `null` value means no limit, so message topics can be+ Will not be `0`. A `null` value means no limit, so message topics can beedited regardless of how long ago they were sent.+ See [`PATCH /messages/{message_id}`](/api/update-message) for details and+ history of how message editing permissions work.+**Changes**: New in Zulip 7.0 (feature level 162). Previously, this timelimit was always 72 hours for users who were not administrators ormoderators.@@ -4633,9 +4649,12 @@ paths:[message move policy](/help/restrict-moving-messages). This setting doesnot affect moderators and administrators.- Will not be 0. A `null` value means no limit, so messages can be moved+ Will not be `0`. A `null` value means no limit, so messages can be movedregardless of how long ago they were sent.+ See [`PATCH /messages/{message_id}`](/api/update-message) for details and+ history of how message editing permissions work.+**Changes**: New in Zulip 7.0 (feature level 162). Previously, there wasno time limit for moving messages between channels for users with permissionto do so.@@ -4651,6 +4670,9 @@ paths:- 4 = Moderators only- 6 = Nobody+ See [`PATCH /messages/{message_id}`](/api/update-message) for details and+ history of how message editing permissions work.+**Changes**: Nobody added as an option in Zulip 7.0 (feature level 159).New in Zulip 4.0 (feature level 56).@@ -8132,16 +8154,15 @@ paths:summary: Edit a messagetags: ["messages"]description: |- Edit/update the content, topic, or channel of a message.+ Update the content, topic, or channel of the message with the specified+ ID.- `{msg_id}` in the above URL should be replaced with the ID of the- message you wish you update.-- You can [resolve topics](/help/resolve-a-topic) by editing the- topic to `✔ {original_topic}`.+ You can [resolve topics](/help/resolve-a-topic) by editing the topic to+ `✔ {original_topic}` with the `propagate_mode` parameter set to+ `"change_all"`.See [configuring message editing][config-message-editing] for detailed- documentation on when users are allowed to edit message content and+ documentation on when users are allowed to edit message content, and[restricting moving messages][restrict-move-messages] for detaileddocumentation on when users are allowed to change a message's topicand/or channel.@@ -8194,6 +8215,12 @@ paths:Before Zulip 7.0 (feature level 159), message senders were allowed to editthe topic of their messages indefinitely.+ In Zulip 5.0 (feature level 75), the `edit_topic_policy` realm setting+ was added, replacing the `allow_community_topic_editing` boolean.++ In Zulip 4.0 (feature level 56), the `move_messages_between_streams_policy`+ realm setting was added.+[config-message-editing]: /help/restrict-message-editing-and-deletion[restrict-move-messages]: /help/restrict-moving-messagesx-curl-examples-parameters:@@ -16404,26 +16431,6 @@ paths:`"role:internet"` and `"role:owners"`.**Changes**: New in Zulip 8.0 (feature level 209).- realm_move_messages_between_streams_policy:- type: integer- description: |- Present if `realm` is present in `fetch_event_types`.-- The [policy][permission-level] for which users can move messages- from one channel to another.-- - 1 = Members only- - 2 = Administrators only- - 3 = [Full members][calc-full-member] only- - 4 = Moderators only- - 6 = Nobody-- **Changes**: Nobody added as an option in Zulip 7.0 (feature level 159).-- New in Zulip 4.0 (feature level 56).-- [permission-level]: /api/roles-and-permissions#permission-levels- [calc-full-member]: /api/roles-and-permissions#determining-if-a-user-is-a-full-memberrealm_inline_image_preview:type: booleandescription: |@@ -16687,8 +16694,13 @@ paths:description: |Present if `realm` is present in `fetch_event_types`.- Whether this organizations [message edit policy](/help/restrict-message-editing-and-deletion)+ Whether this organization's [message edit policy][config-message-editing]allows editing the content of messages.++ See [`PATCH /messages/{message_id}`](/api/update-message) for details and+ history of how message editing permissions work.++ [config-message-editing]: /help/restrict-message-editing-and-deletionrealm_edit_topic_policy:type: integerdescription: |@@ -16703,10 +16715,35 @@ paths:- 5 = Everyone- 6 = Nobody+ See [`PATCH /messages/{message_id}`](/api/update-message) for details and+ history of how message editing permissions work.++ **Changes**: Nobody added as an option in Zulip 7.0 (feature level 159).++ New in Zulip 5.0 (feature level 75).++ [permission-level]: /api/roles-and-permissions#permission-levels+ [calc-full-member]: /api/roles-and-permissions#determining-if-a-user-is-a-full-member+ realm_move_messages_between_streams_policy:+ type: integer+ description: |+ Present if `realm` is present in `fetch_event_types`.++ The [policy][permission-level] for which users can move messages+ from one channel to another.++ - 1 = Members only+ - 2 = Administrators only+ - 3 = [Full members][calc-full-member] only+ - 4 = Moderators only+ - 6 = Nobody++ See [`PATCH /messages/{message_id}`](/api/update-message) for details+ and history of how message editing permissions work.+**Changes**: Nobody added as an option in Zulip 7.0 (feature level 159).- New in Zulip 5.0 (feature level 75), replacing the previous- `allow_community_topic_editing` boolean.+ New in Zulip 4.0 (feature level 56).[permission-level]: /api/roles-and-permissions#permission-levels[calc-full-member]: /api/roles-and-permissions#determining-if-a-user-is-a-full-member@@ -16720,11 +16757,14 @@ paths:with this organization's[message edit policy](/help/restrict-message-editing-and-deletion).- Will not be 0. A `null` value means no limit: messages can be edited+ Will not be `0`. A `null` value means no limit, so messages can be editedregardless of how long ago they were sent.- **Changes**: No limit was represented using the- special value `0` before Zulip 6.0 (feature level 138).+ See [`PATCH /messages/{message_id}`](/api/update-message) for details and+ history of how message editing permissions work.++ **Changes**: Before Zulip 6.0 (feature level 138), no limit was+ represented using the special value `0`.realm_move_messages_within_stream_limit_seconds:type: integernullable: true@@ -16736,9 +16776,12 @@ paths:organization's [topic edit policy](/help/restrict-moving-messages). Thissetting does not affect moderators and administrators.- Will not be 0. A `null` value means no limit, so message topics can be+ Will not be `0`. A `null` value means no limit, so message topics can beedited regardless of how long ago they were sent.+ See [`PATCH /messages/{message_id}`](/api/update-message) for details and+ history of how message editing permissions work.+**Changes**: New in Zulip 7.0 (feature level 162). Previously, this timelimit was always 72 hours for users who were not administrators ormoderators.@@ -16753,9 +16796,12 @@ paths:[message move policy](/help/restrict-moving-messages). This setting doesnot affect moderators and administrators.- Will not be 0. A `null` value means no limit, so messages can be moved+ Will not be `0`. A `null` value means no limit, so messages can be movedregardless of how long ago they were sent.+ See [`PATCH /messages/{message_id}`](/api/update-message) for details and+ history of how message editing permissions work.+**Changes**: New in Zulip 7.0 (feature level 162). Previously, there wasno time limit for moving messages between channels for users with permissionto do so.