Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
api_docs: Fix "/invites" enpoint documentation.
Vector736af9a6635c47
diff --git a/zerver/openapi/python_examples.py b/zerver/openapi/python_examples.pyindex 47c8b46edd0..1ca2093367d 100644--- a/zerver/openapi/python_examples.py+++ b/zerver/openapi/python_examples.py@@ -319,7 +319,7 @@ def send_invitations(client: Client) -> None:# Send invitationsrequest = {"invitee_emails": "[email protected], [email protected]",- "invite_expires_in_minutes": 14400,+ "invite_expires_in_minutes": 60 * 24 * 10, # 10 days"invite_as": 400,"stream_ids": [1, 8, 9],}diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yamlindex e18195687de..3956102bf4b 100644--- a/zerver/openapi/zulip.yaml+++ b/zerver/openapi/zulip.yaml@@ -11889,7 +11889,8 @@ paths:description: |The number of minutes before the invitation will expire. If `null`, theinvitation will never expire. If unspecified, the server will use a default- value (`INVITATION_LINK_VALIDITY_MINUTES`) for when the invitation will expire.+ value (based on the `INVITATION_LINK_VALIDITY_MINUTES` server setting, which+ defaults to 10) for when the invitation will expire.**Changes**: New in Zulip 6.0 (feature level 126). Previously, there was an`invite_expires_in_days` parameter, which specified the duration in days instead@@ -11901,6 +11902,13 @@ paths:description: |The [organization-level role](/api/roles-and-permissions) of the user that iscreated when the invitation is accepted.+ Possible values are:++ - 100 = Organization owner+ - 200 = Organization administrator+ - 300 = Organization moderator+ - 400 = Member+ - 600 = GuestUsers can only send invitations for[roles with equal or stricter restrictions](/api/roles-and-permissions#permission-levels)