diff options
author | hchouraria <74939692+hchouraria@users.noreply.github.com> | 2020-12-13 05:59:49 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-13 05:59:49 +0530 |
commit | 92eb4e3ca0ccd83dba2067ccc4ce206fd17be020 (patch) | |
tree | 615a53e66b9cb11486894d523819aefc6a89a12b | |
parent | 265dbbdd37af88395574564aeb3fd0350288a18c (diff) | |
download | gitlab-92eb4e3ca0ccd83dba2067ccc4ce206fd17be020.tar.gz |
docs(groups): add example for creating subgroups
-rw-r--r-- | docs/gl_objects/groups.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/gl_objects/groups.rst b/docs/gl_objects/groups.rst index 199847d..1880a6b 100644 --- a/docs/gl_objects/groups.rst +++ b/docs/gl_objects/groups.rst @@ -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' |