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.

openapi: Fix examples in response for deactivating user endpoints.

sahil839fbae1685d60f
diff --git a/templates/zerver/api/deactivate-user.md b/templates/zerver/api/deactivate-user.md
index d8c7933851a..832f90dfe59 100644
--- a/templates/zerver/api/deactivate-user.md
+++ b/templates/zerver/api/deactivate-user.md
@@ -28,6 +28,6 @@ A typical successful JSON response may look like:
{generate_code_example|/users/{user_id}:delete|fixture(200)}
An example JSON error response when attempting to deactivate the only
-organization administrator:
+organization owner in an organization:
{generate_code_example|/users/{user_id}:delete|fixture(400)}
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml
index 319fa8c457e..3b074757adf 100644
--- a/zerver/openapi/zulip.yaml
+++ b/zerver/openapi/zulip.yaml
@@ -4499,7 +4499,7 @@ paths:
- $ref: "#/components/schemas/JsonError"
- example:
{
- "msg": "Cannot deactivate the only organization administrator",
+ "msg": "Cannot deactivate the only organization owner",
"result": "error",
}
/users/me/{stream_id}/topics:
@@ -5597,7 +5597,7 @@ paths:
- $ref: "#/components/schemas/JsonError"
- example:
{
- "msg": "Cannot deactivate the only organization administrator",
+ "msg": "Cannot deactivate the only organization owner",
"result": "error",
}
/realm/filters: