Skip to content

Commit 5ac309a

Browse files
authored
Merge pull request #1251 from hchouraria/patch-1
docs(groups): add example for creating subgroups
2 parents b567522 + 92eb4e3 commit 5ac309a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/gl_objects/groups.rst

Lines changed: 4 additions & 0 deletions
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)