Method: Gitlab::Client::Groups#create_group

Defined in:
lib/gitlab/client/groups.rb

#create_group(name, path, options = {}) ⇒ Gitlab::ObjectifiedHash

Creates a new group.

Examples:

Gitlab.create_group('new-group', 'group-path')
Gitlab.create_group('gitlab', 'gitlab-path', { description: 'New Gitlab project' })


44
45
46
47
# File 'lib/gitlab/client/groups.rb', line 44

def create_group(name, path, options = {})
  body = { name: name, path: path }.merge(options)
  post('/groups', body: body)
end