Skip to content

Commit

Permalink
docs(groups): describe GitLab.com group creation limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
nejch authored and JohnVillalovos committed Nov 10, 2022
1 parent d0a0348 commit 9bd433a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/gl_objects/groups.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ Create a group::

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

.. warning::

On GitLab.com, creating top-level groups is currently
`not permitted using the API <https://docs.gitlab.com/ee/api/groups.html#new-group>`_.
You can only use the API to create subgroups.

Create a subgroup under an existing group::

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

0 comments on commit 9bd433a

Please sign in to comment.