Skip to content

Commit 92eb4e3

Browse files
docs(groups): add example for creating subgroups
1 parent 265dbbd commit 92eb4e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/gl_objects/groups.rst

+4
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ Create a group::
5656

5757
group = gl.groups.create({'name': 'group1', 'path': 'group1'})
5858

59+
Create a subgroup under an existing group::
60+
61+
subgroup = gl.groups.create({'name': 'subgroup1', 'path': 'subgroup1', 'parent_id': parent_group_id})
62+
5963
Update a group::
6064

6165
group.description = 'My awesome group'

0 commit comments

Comments
 (0)