summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Wittig <max.wittig@siemens.com>2021-01-29 12:37:29 +0100
committerGitHub <noreply@github.com>2021-01-29 12:37:29 +0100
commit5ac309a5eb420fdfdc023c8de9299c27eaeac186 (patch)
treea2d12ed447268325cb1b2fc97d8b99e0314c4696
parentb567522443e78b12571f709dd3b3559dbd4ba741 (diff)
parent92eb4e3ca0ccd83dba2067ccc4ce206fd17be020 (diff)
downloadgitlab-5ac309a5eb420fdfdc023c8de9299c27eaeac186.tar.gz
Merge pull request #1251 from hchouraria/patch-1
docs(groups): add example for creating subgroups
-rw-r--r--docs/gl_objects/groups.rst4
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'