groups

POST /api/v4/groups/{id}/transfer_to_organization

Transfer a group to an organization

Request

  • Base URL
    https://gitlab.com
  • Auth
    none declared

Path parameters

idstring required

The ID of a group

Request body

organization_idinteger required

The ID of the organization to transfer the group to

Response

Transfer a group to an organization

idinteger required
web_urlstring required
namestring required
pathstring required
descriptionstring required
visibilitystring required
share_with_group_lockboolean required
require_two_factor_authenticationboolean required
two_factor_grace_periodinteger required
project_creation_levelstring required
auto_devops_enabledstring required
subgroup_creation_levelstring required
emails_disabledboolean required
emails_enabledboolean required
show_diff_preview_in_emailboolean required
mentions_disabledstring required
lfs_enabledboolean required
archivedboolean required
math_rendering_limits_enabledboolean required
lock_math_rendering_limits_enabledboolean required
crm_enabledboolean required
resource_access_token_notify_inheritedboolean required
lock_resource_access_token_notify_inheritedboolean required
default_branchstring required
default_branch_protectioninteger required
default_branch_protection_defaultsstring required
avatar_urlstring required
request_access_enabledboolean required
full_namestring required
full_pathstring required
created_atstring required
parent_idstring required
organization_idinteger required
shared_runners_settingstring required
max_artifacts_sizeinteger required
marked_for_deletion_onstring required
ldap_cnstring required
ldap_accessstring required
file_template_project_idstring
wiki_access_levelstring required
repository_storagestring
duo_core_features_enabledboolean

[Experimental] Indicates whether GitLab Duo Core features are enabled for the group

duo_features_enabledstring
lock_duo_features_enabledstring
auto_duo_code_review_enabledstring
web_based_commit_signing_enabledstring
allow_personal_snippetsstring
duo_namespace_access_rulesstring
built_in_project_templates_enabledboolean
lock_built_in_project_templates_enabledboolean
shared_with_groupsobject[] required
runners_tokenstring
enabled_git_access_protocolstring
prevent_sharing_groups_outside_hierarchyboolean
step_up_auth_required_oauth_providerstring

OAuth provider required for step-up authentication.

shared_runners_minutes_limitstring required
extra_shared_runners_minutes_limitstring required
prevent_forking_outside_groupstring required
service_access_tokens_expiration_enforcedstring
experiment_features_enabledstring
membership_lockstring required
ip_restriction_rangesstring
allowed_email_domains_liststring
only_allow_merge_if_pipeline_succeedsstring
allow_merge_on_skipped_pipelinestring
only_allow_merge_if_all_discussions_are_resolvedstring
unique_project_download_limitstring
unique_project_download_limit_interval_in_secondsstring
unique_project_download_limit_allowliststring
unique_project_download_limit_alertliststring
auto_ban_user_on_excessive_projects_downloadstring

Example response

{
  "web_url": "http://gitlab.example.com/groups/diaspora",
  "name": "Diaspora",
  "custom_attributes": {
    "key": "foo",
    "value": "bar"
  },
  "ldap_group_links": {
    "cn": "ldap-group-1",
    "group_access": 10,
    "provider": "ldapmain",
    "filter": "id >= 500",
    "member_role_id": 12
  },
  "saml_group_links": {
    "name": "saml-group-1",
    "access_level": 40,
    "member_role_id": 12,
    "provider": "saml"
  },
  "runners_token": "b8bc4a7a29eb76ea83cf79e4908c2b",
  "enabled_git_access_protocol": "ssh",
  "projects": {
    "id": 1,
    "description": "desc",
    "name": "project1",
    "name_with_namespace": "John Doe / project1",
    "path": "project1",
    "path_with_namespace": "namespace1/project1",
    "created_at": "2020-05-07T04:27:17.016Z",
    "default_branch": "main",
    "tag_list": [
      "tag"
    ],
    "topics": [
      "topic"
    ],
    "ssh_url_to_repo": "git@gitlab.example.com:gitlab/gitlab.git",
    "http_url_to_repo": "https://gitlab.example.com/gitlab/gitlab.git",
    "web_url": "https://gitlab.example.com/gitlab/gitlab",
    "readme_url": "https://gitlab.example.com/gitlab/gitlab/blob/master/README.md",
    "forks_count": 1,
    "license_url": "https://gitlab.example.com/gitlab/gitlab/blob/master/LICENCE",
    "license": {
      "key": "gpl-3.0",
      "name": "GNU General Public License v3.0",
      "nickname": "GNU GPLv3",
      "html_url": "http://choosealicense.com/licenses/gpl-3.0"
    },
    "avatar_url": "http://example.com/uploads/project/avatar/3/uploads/avatar.png",
    "star_count": 1,
    "last_activity_at": "2013-09-30T13:46:02Z",
    "visibility": "public",
    "namespace": {
      "id": 2,
      "name": "project",
      "path": "my_project",
      "kind": "project",
      "full_path": "group/my_project",
      "parent_id": 1,
      "avatar_url": "https://example.com/avatar/12345",
      "web_url": "https://example.com/group/my_project"
    },
    "custom_attributes": {
      "key": "foo",
      "value": "bar"
    },
    "repository_storage": "default",
    "forked_from_project": {
      "id": 1,
      "description": "desc",
      "name": "project1",
      "name_with_namespace": "John Doe / project1",
      "path": "project1",
      "path_with_namespace": "namespace1/project1",
      "created_at": "2020-05-07T04:27:17.016Z",
      "default_branch": "main",
      "tag_list": [
        "tag"
      ],
      "topics": [
        "topic"
      ],
      "ssh_url_to_repo": "git@gitlab.example.com:gitlab/gitlab.git",
      "http_url_to_repo": "https://gitlab.example.com/gitlab/gitlab.git",
      "web_url": "https://gitlab.example.com/gitlab/gitlab",
      "readme_url": "https://gitlab.example.com/gitlab/gitlab/blob/master/README.md",
      "forks_count": 1,
      "license_url": "https://gitlab.example.com/gitlab/gitlab/blob/master/LICENCE",
      "license": {
        "key": "gpl-3.0",
        "name": "GNU General Public License v3.0",
        "nickname": "GNU GPLv3",
        "html_url": "http://choosealicense.com/licenses/gpl-3.0"
      },
      "avatar_url": "http://example.com/uploads/project/avatar/3/uploads/avatar.png",
      "star_count": 1,
      "last_activity_at": "2013-09-30T13:46:02Z",
      "visibility": "public",
      "namespace": {
        "id": 2,
        "name": "project",
        "path": "my_project",
        "kind": "project",
        "full_path": "group/my_project",
        "parent_id": 1,
        "avatar_url": "https://example.com/avatar/12345",
        "web_url": "https://example.com/group/my_project"
      },
      "custom_attributes": {
        "key": "foo",
        "value": "bar"
      },
      "repository_storage": "default"
    },
    "container_registry_image_prefix": "registry.gitlab.example.com/gitlab/gitlab-client",
    "_links": {
      "self": "https://gitlab.example.com/api/v4/projects/4",
      "issues": "https://gitlab.example.com/api/v4/projects/4/issues",
      "merge_requests": "https://gitlab.example.com/api/v4/projects/4/merge_requests",
      "repo_branches": "https://gitlab.example.com/api/v4/projects/4/repository/branches",
      "labels": "https://gitlab.example.com/api/v4/projects/4/labels",
      "events": "https://gitlab.example.com/api/v4/projects/4/events",
      "members": "https://gitlab.example.com/api/v4/projects/4/members",
      "cluster_agents": "https://gitlab.example.com/api/v4/projects/4/cluster_agents"
    },
    "marked_for_deletion_at": "2020-05-07T04:27:17.016Z",
    "marked_for_deletion_on": "2020-05-07T04:27:17.016Z",
    "owner": {
      "id": 1,
      "username": "admin",
      "public_email": "john@example.com",
      "name": "Administrator",
      "state": "active",
      "avatar_url": "https://gravatar.com/avatar/1",
      "avatar_path": "/user/avatar/28/The-Big-Lebowski-400-400.png",
      "custom_attributes": [
        {
          "key": "foo",
          "value": "bar"
        }
      ],
      "web_url": "https://gitlab.example.com/root"
    },
    "repository_object_format": "sha1",
    "service_desk_address": "address@example.com",
    "issues_access_level": "enabled",
    "repository_access_level": "enabled",
    "merge_requests_access_level": "enabled",
    "forking_access_level": "enabled",
    "wiki_access_level": "enabled",
    "builds_access_level": "enabled",
    "snippets_access_level": "enabled",
    "pages_access_level": "enabled",
    "analytics_access_level": "enabled",
    "container_registry_access_level": "enabled",
    "security_and_compliance_access_level": "enabled",
    "releases_access_level": "enabled",
    "environments_access_level": "enabled",
    "feature_flags_access_level": "enabled",
    "infrastructure_access_level": "enabled",
    "monitor_access_level": "enabled",
    "model_experiments_access_level": "enabled",
    "model_registry_access_level": "enabled",
    "package_registry_access_level": "enabled",
    "creator_id": 1,
    "import_url": "https://gitlab.com/gitlab/gitlab.git",
    "import_type": "git",
    "import_status": "none",
    "import_error": "Import error",
    "open_issues_count": 1,
    "updated_at": "2020-05-07T04:27:17.016Z",
    "ci_default_git_depth": 20,
    "ci_delete_pipelines_in_seconds": 86400,
    "build_git_strategy": "fetch",
    "runner_token_expiration_interval": 3600,
    "resource_group_default_process_mode": "unordered",
    "auto_cancel_pending_pipelines": "enabled",
    "build_timeout": 3600,
    "auto_devops_deploy_strategy": "continuous",
    "runners_token": "b8547b1dc37721d05889db52fa2f02",
    "merge_method": "merge",
    "squash_option": "default_off",
    "suggestion_commit_message": "Suggestion message",
    "merge_commit_template": "%(title)",
    "squash_commit_template": "%(source_branch)",
    "mr_default_title_template": "%(source_branch)",
    "issue_branch_template": "%(title)",
    "statistics": {
      "commit_count": 37,
      "storage_size": 1038090,
      "repository_size": 1038090
    },
    "reviewer_assignment_strategy": "code_owners",
    "merge_request_title_regex": "/Title of merge request/",
    "merge_request_title_regex_description": "This requires the title to include a Jira label"
  },
  "shared_projects": {
    "id": 1,
    "description": "desc",
    "name": "project1",
    "name_with_namespace": "John Doe / project1",
    "path": "project1",
    "path_with_namespace": "namespace1/project1",
    "created_at": "2020-05-07T04:27:17.016Z",
    "default_branch": "main",
    "tag_list": [
      "tag"
    ],
    "topics": [
      "topic"
    ],
    "ssh_url_to_repo": "git@gitlab.example.com:gitlab/gitlab.git",
    "http_url_to_repo": "https://gitlab.example.com/gitlab/gitlab.git",
    "web_url": "https://gitlab.example.com/gitlab/gitlab",
    "readme_url": "https://gitlab.example.com/gitlab/gitlab/blob/master/README.md",
    "forks_count": 1,
    "license_url": "https://gitlab.example.com/gitlab/gitlab/blob/master/LICENCE",
    "license": {
      "key": "gpl-3.0",
      "name": "GNU General Public License v3.0",
      "nickname": "GNU GPLv3",
      "html_url": "http://choosealicense.com/licenses/gpl-3.0"
    },
    "avatar_url": "http://example.com/uploads/project/avatar/3/uploads/avatar.png",
    "star_count": 1,
    "last_activity_at": "2013-09-30T13:46:02Z",
    "visibility": "public",
    "namespace": {
      "id": 2,
      "name": "project",
      "path": "my_project",
      "kind": "project",
      "full_path": "group/my_project",
      "parent_id": 1,
      "avatar_url": "https://example.com/avatar/12345",
      "web_url": "https://example.com/group/my_project"
    },
    "custom_attributes": {
      "key": "foo",
      "value": "bar"
    },
    "repository_storage": "default",
    "forked_from_project": {
      "id": 1,
      "description": "desc",
      "name": "project1",
      "name_with_namespace": "John Doe / project1",
      "path": "project1",
      "path_with_namespace": "namespace1/project1",
      "created_at": "2020-05-07T04:27:17.016Z",
      "default_branch": "main",
      "tag_list": [
        "tag"
      ],
      "topics": [
        "topic"
      ],
      "ssh_url_to_repo": "git@gitlab.example.com:gitlab/gitlab.git",
      "http_url_to_repo": "https://gitlab.example.com/gitlab/gitlab.git",
      "web_url": "https://gitlab.example.com/gitlab/gitlab",
      "readme_url": "https://gitlab.example.com/gitlab/gitlab/blob/master/README.md",
      "forks_count": 1,
      "license_url": "https://gitlab.example.com/gitlab/gitlab/blob/master/LICENCE",
      "license": {
        "key": "gpl-3.0",
        "name": "GNU General Public License v3.0",
        "nickname": "GNU GPLv3",
        "html_url": "http://choosealicense.com/licenses/gpl-3.0"
      },
      "avatar_url": "http://example.com/uploads/project/avatar/3/uploads/avatar.png",
      "star_count": 1,
      "last_activity_at": "2013-09-30T13:46:02Z",
      "visibility": "public",
      "namespace": {
        "id": 2,
        "name": "project",
        "path": "my_project",
        "kind": "project",
        "full_path": "group/my_project",
        "parent_id": 1,
        "avatar_url": "https://example.com/avatar/12345",
        "web_url": "https://example.com/group/my_project"
      },
      "custom_attributes": {
        "key": "foo",
        "value": "bar"
      },
      "repository_storage": "default"
    },
    "container_registry_image_prefix": "registry.gitlab.example.com/gitlab/gitlab-client",
    "_links": {
      "self": "https://gitlab.example.com/api/v4/projects/4",
      "issues": "https://gitlab.example.com/api/v4/projects/4/issues",
      "merge_requests": "https://gitlab.example.com/api/v4/projects/4/merge_requests",
      "repo_branches": "https://gitlab.example.com/api/v4/projects/4/repository/branches",
      "labels": "https://gitlab.example.com/api/v4/projects/4/labels",
      "events": "https://gitlab.example.com/api/v4/projects/4/events",
      "members": "https://gitlab.example.com/api/v4/projects/4/members",
      "cluster_agents": "https://gitlab.example.com/api/v4/projects/4/cluster_agents"
    },
    "marked_for_deletion_at": "2020-05-07T04:27:17.016Z",
    "marked_for_deletion_on": "2020-05-07T04:27:17.016Z",
    "owner": {
      "id": 1,
      "username": "admin",
      "public_email": "john@example.com",
      "name": "Administrator",
      "state": "active",
      "avatar_url": "https://gravatar.com/avatar/1",
      "avatar_path": "/user/avatar/28/The-Big-Lebowski-400-400.png",
      "custom_attributes": [
        {
          "key": "foo",
          "value": "bar"
        }
      ],
      "web_url": "https://gitlab.example.com/root"
    },
    "repository_object_format": "sha1",
    "service_desk_address": "address@example.com",
    "issues_access_level": "enabled",
    "repository_access_level": "enabled",
    "merge_requests_access_level": "enabled",
    "forking_access_level": "enabled",
    "wiki_access_level": "enabled",
    "builds_access_level": "enabled",
    "snippets_access_level": "enabled",
    "pages_access_level": "enabled",
    "analytics_access_level": "enabled",
    "container_registry_access_level": "enabled",
    "security_and_compliance_access_level": "enabled",
    "releases_access_level": "enabled",
    "environments_access_level": "enabled",
    "feature_flags_access_level": "enabled",
    "infrastructure_access_level": "enabled",
    "monitor_access_level": "enabled",
    "model_experiments_access_level": "enabled",
    "model_registry_access_level": "enabled",
    "package_registry_access_level": "enabled",
    "creator_id": 1,
    "import_url": "https://gitlab.com/gitlab/gitlab.git",
    "import_type": "git",
    "import_status": "none",
    "import_error": "Import error",
    "open_issues_count": 1,
    "updated_at": "2020-05-07T04:27:17.016Z",
    "ci_default_git_depth": 20,
    "ci_delete_pipelines_in_seconds": 86400,
    "build_git_strategy": "fetch",
    "runner_token_expiration_interval": 3600,
    "resource_group_default_process_mode": "unordered",
    "auto_cancel_pending_pipelines": "enabled",
    "build_timeout": 3600,
    "auto_devops_deploy_strategy": "continuous",
    "runners_token": "b8547b1dc37721d05889db52fa2f02",
    "merge_method": "merge",
    "squash_option": "default_off",
    "suggestion_commit_message": "Suggestion message",
    "merge_commit_template": "%(title)",
    "squash_commit_template": "%(source_branch)",
    "mr_default_title_template": "%(source_branch)",
    "issue_branch_template": "%(title)",
    "statistics": {
      "commit_count": 37,
      "storage_size": 1038090,
      "repository_size": 1038090
    },
    "reviewer_assignment_strategy": "code_owners",
    "merge_request_title_regex": "/Title of merge request/",
    "merge_request_title_regex_description": "This requires the title to include a Jira label"
  },
  "ai_settings": {
    "duo_agent_platform_enabled": true,
    "foundational_agents_default_enabled": true,
    "prompt_injection_protection_level": "no_checks",
    "allow_project_extension": true,
    "minimum_access_level_execute": "developer",
    "minimum_access_level_execute_async": "developer",
    "minimum_access_level_manage": "maintainer",
    "minimum_access_level_enable_on_projects": "maintainer"
  }
}

Changes

No recorded changes to this operation across all 5 revisions of this API.