Method: Gitlab::Client::Groups#transfer_project_to_group

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

#transfer_project_to_group(id, project_id) ⇒ Object

Transfers a project to a group

Examples:

Gitlab.transfer_project_to_group(3, 50)

Parameters:

  • id (Integer)

    The ID of a group.

  • project_id (Integer)

    The ID of a project.

[View source]

158
159
160
161
# File 'lib/gitlab/client/groups.rb', line 158

def transfer_project_to_group(id, project_id)
  body = { id: id, project_id: project_id }
  post("/groups/#{url_encode id}/projects/#{project_id}", body: body)
end