Method: Gitlab::Client::Groups#edit_group

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

#edit_group(id, options = {}) ⇒ Gitlab::ObjectifiedHash

Updates an existing group.

Examples:

Gitlab.edit_group(42)
Gitlab.edit_group(42, { name: 'Group Name' })

Parameters:

  • group (Integer)

    The ID.

  • options (Hash) (defaults to: {})

    A customizable set of options

Options Hash (options):

  • :name (String)

    The name of the group.

  • :path (String)

    The path of the group.

  • :description (String)

    The description of the group.

  • :visibility (String)

    The visibility level of the group. Can be private, internal, or public

  • :lfs_enabled (String)

    Enable/disable Large File Storage (LFS) for the projects in this groupr.

  • :request_access_enabled (String)

    Allow users to request member access.

Returns:

[View source]

221
222
223
# File 'lib/gitlab/client/groups.rb', line 221

def edit_group(id, options = {})
  put("/groups/#{url_encode id}", body: options)
end