Skip to content

Commit

Permalink
docs(groups): add example for creating subgroups
Browse files Browse the repository at this point in the history
  • Loading branch information
gl-gh-hchouraria committed Dec 13, 2020
1 parent 265dbbd commit 92eb4e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/gl_objects/groups.rst
Expand Up @@ -56,6 +56,10 @@ Create a group::

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

Create a subgroup under an existing group::

subgroup = gl.groups.create({'name': 'subgroup1', 'path': 'subgroup1', 'parent_id': parent_group_id})

Update a group::

group.description = 'My awesome group'
Expand Down

0 comments on commit 92eb4e3

Please sign in to comment.