api-docs: Update feature level 261 documentation.

The original changes for this feature level are in
commits a6be1d101 and 7b42c802b.
This commit is contained in:
Lauryn Menard 2024-05-15 15:26:51 +02:00 committed by Lauryn Menard
parent 51635c81fc
commit ab0fc402e0
3 changed files with 59 additions and 40 deletions

View File

@ -22,16 +22,17 @@ format used by the Zulip server that they are interacting with.
**Feature level 261** **Feature level 261**
* [`POST /invites`](/api/send-invites), [`POST * [`POST /invites`](/api/send-invites),
/invites/multiuse`](/api/create-invite-link): Newly created user is [`POST /invites/multiuse`](/api/create-invite-link): Added
now subscribed to the default streams in the organization even when `include_realm_default_subscriptions` parameter to indicate whether
the user sending the invite is not allowed to subscribe others. the newly created user will be automatically subscribed to [default
* [`POST /invites`](/api/send-invites), [`POST channels](/help/set-default-channels-for-new-users) in the
/invites/multiuse`](/api/create-invite-link): Added organization. Previously, the default channel IDs needed to be included
`include_realm_default_subscriptions` parameter to indicate whether to in the `stream_ids` parameter. This also allows a newly created user
subscribe the invited user to default streams when creating the new to be automatically subscribed to the default channels in an
user account instead of passing the stream IDs of default streams organization when the user creating the invitation does not generally
in `stream_ids` parameter. have permission to [subscribe other users to
channels](/help/configure-who-can-invite-to-channels).
**Feature level 260**: **Feature level 260**:

View File

@ -33,7 +33,7 @@ DESKTOP_WARNING_VERSION = "5.9.3"
# Changes should be accompanied by documentation explaining what the # Changes should be accompanied by documentation explaining what the
# new level means in api_docs/changelog.md, as well as "**Changes**" # new level means in api_docs/changelog.md, as well as "**Changes**"
# entries in the endpoint's documentation in `zulip.yaml`. # entries in the endpoint's documentation in `zulip.yaml`.
API_FEATURE_LEVEL = 260 API_FEATURE_LEVEL = 261
# Bump the minor PROVISION_VERSION to indicate that folks should provision # Bump the minor PROVISION_VERSION to indicate that folks should provision
# only when going from an old version of the code to a newer version. Bump # only when going from an old version of the code to a newer version. Bump

View File

@ -12160,34 +12160,43 @@ paths:
$ref: "#/components/schemas/InviteRoleParameter" $ref: "#/components/schemas/InviteRoleParameter"
stream_ids: stream_ids:
description: | description: |
A list containing the [IDs of the streams](/api/get-stream-id) that A list containing the [IDs of the channels](/api/get-stream-id) that the
the newly created user will be automatically subscribed to if the newly created user will be automatically subscribed to if the invitation
invitation is accepted, in addition to default streams configured via is accepted, in addition to any default channels that the new user may
the `include_realm_default_subscriptions` setting. be subscribed to based on the `include_realm_default_subscriptions`
parameter.
This parameter must be the empty list if the current user has the This list must be empty if the current user has the unlikely
unlikely configuration of being able to generate invitations while configuration of being able to send invitations while lacking
lacking permission to subscribe other users to streams. permission to [subscribe other users to channels][can-subscribe-others].
**Changes**: Prior to Zulip 9.0 (feature level 261), if the user was not
allowed to subscribe others to stream, the newly created user was not
subscribed to any streams.
**Changes**: Before Zulip 7.0 (feature level 180), specifying `stream_ids` **Changes**: Before Zulip 7.0 (feature level 180), specifying `stream_ids`
as an empty list resulted in an error. as an empty list resulted in an error.
[can-subscribe-others]: /help/configure-who-can-invite-to-channels
type: array type: array
items: items:
type: integer type: integer
example: [1, 10] example: [1, 10]
include_realm_default_subscriptions: include_realm_default_subscriptions:
description: | description: |
Boolean indicating that the newly created user should be subscribed Boolean indicating whether the newly created user should be subscribed
to the [default streams][default-streams] for the organization. to the [default channels][default-channels] for the organization.
**Changes**: New in Zulip 9.0 (feature level 261). Note that this parameter can be `true` even if the user creating the
invitation does not generally have permission to [subscribe other
users to channels][can-subscribe-others].
[default-streams]: /help/set-default-streams-for-new-users **Changes**: New in Zulip 9.0 (feature level 261). Previous versions
of Zulip behaved as though this parameter was always `false`; clients
needed to include the organization's default streams in the
`stream_ids` parameter for a newly created user to be automatically
subscribed to them.
[default-channels]: /help/set-default-channels-for-new-users
[can-subscribe-others]: /help/configure-who-can-invite-to-channels
type: boolean type: boolean
default: false
example: false example: false
required: required:
- invitee_emails - invitee_emails
@ -12318,19 +12327,18 @@ paths:
$ref: "#/components/schemas/InviteRoleParameter" $ref: "#/components/schemas/InviteRoleParameter"
stream_ids: stream_ids:
description: | description: |
A list containing the [IDs of the streams](/api/get-stream-id) that the A list containing the [IDs of the channels](/api/get-stream-id) that the
newly created user will be automatically subscribed to if the invitation newly created user will be automatically subscribed to if the invitation
is accepted. If unspecified, it will be set to empty list. If the list is is accepted, in addition to any default channels that the new user may
empty, then the new user will not be subscribed to any streams. be subscribed to based on the `include_realm_default_subscriptions`
parameter.
If the user is not allowed to subscribe others, then this list should This list must be empty if the current user has the unlikely
be empty but the newly created user will still be subscribed to default configuration of being able to create reusable invitation links while
streams in the organization depending on the `include_realm_default_subscriptions` lacking permission to [subscribe other users to
value. channels][can-subscribe-others].
**Changes**: Prior to Zulip 9.0 (feature level 261), if the user was not [can-subscribe-others]: /help/configure-who-can-invite-to-channels
allowed to subscribe others to stream, the newly created user was not
subscribed to any streams.
type: array type: array
items: items:
type: integer type: integer
@ -12338,13 +12346,23 @@ paths:
example: [1, 10] example: [1, 10]
include_realm_default_subscriptions: include_realm_default_subscriptions:
description: | description: |
Boolean indicating that the newly created user should be subscribed Boolean indicating whether the newly created user should be subscribed
to the [default streams][default-streams] for the organization. to the [default channels][default-channels] for the organization.
**Changes**: New in Zulip 9.0 (feature level 261). Note that this parameter can be `true` even if the current user does
not generally have permission to [subscribe other users to
channels][can-subscribe-others].
[default-streams]: /help/set-default-streams-for-new-users **Changes**: New in Zulip 9.0 (feature level 261). Previous versions
of Zulip behaved as though this parameter was always `false`; clients
needed to include the organization's default streams in the
`stream_ids` parameter for a newly created user to be automatically
subscribed to them.
[default-channels]: /help/set-default-channels-for-new-users
[can-subscribe-others]: /help/configure-who-can-invite-to-channels
type: boolean type: boolean
default: false
example: false example: false
encoding: encoding:
invite_expires_in_minutes: invite_expires_in_minutes: