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.

apidocs: Move stray update message description to OpenAPI.

Suyash Vardhan Mathur570f3d350c1c
diff --git a/templates/zerver/api/update-message.md b/templates/zerver/api/update-message.md
index f347875f7f1..4ef3edadb79 100644
--- a/templates/zerver/api/update-message.md
+++ b/templates/zerver/api/update-message.md
@@ -17,15 +17,6 @@
{end_tabs}
-## Permissions
-
-You only have permission to edit a message if:
-
-1. You sent it, **OR**:
-2. This is a topic-only edit for a (no topic) message, **OR**:
-3. This is a topic-only edit and you are an admin, **OR**:
-4. This is a topic-only edit and your realm allows users to edit topics.
-
## Parameters
{generate_api_arguments_table|zulip.yaml|/messages/{message_id}:patch}
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml
index 375ce1d51a1..13d925df50e 100644
--- a/zerver/openapi/zulip.yaml
+++ b/zerver/openapi/zulip.yaml
@@ -5018,6 +5018,11 @@ paths:
`{msg_id}` in the above URL should be replaced with the ID of the
message you wish you update.
+
+ **Note**: See [configuring message editing][config-message-editing] for detailed documentation on under what
+ circumstances users are allowed to edit topics.
+
+ [config-message-editing]: /help/configure-message-editing-and-deletion
x-curl-examples-parameters:
oneOf:
- type: exclude