user_groups: Add API support to add subgroups during group creation.

This commit adds support to add subgroups to a group while
creating it.

User can add the subgroups to group irrespective of permissions
like user can add members during creating it.
This commit is contained in:
Sahil Batra
2024-10-15 21:37:38 +05:30
committed by Tim Abbott
parent 1e818c4708
commit e5043b991a
5 changed files with 82 additions and 5 deletions

View File

@@ -20279,6 +20279,19 @@ paths:
items:
type: integer
example: [1, 2, 3, 4]
subgroups:
description: |
An array containing the IDs of the initial subgroups for the new
user group.
User can add subgroups to the new group irrespective of other
permissions for the new group.
**Changes**: New in Zulip 10.0 (feature level 311).
type: array
items:
type: integer
example: [11]
can_add_members_group:
allOf:
- description: |
@@ -20362,6 +20375,8 @@ paths:
encoding:
members:
contentType: application/json
subgroups:
contentType: application/json
can_add_members_group:
contentType: application/json
can_join_group: