Add a group to a group
Adds a group to a group.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The ID of a group
Request Body required
Section titled “ Request Body required ”object
The ID of the group to share
The group access level
Share expiration date
The ID of the Member Role to be assigned to the group
Responses
Section titled “ Responses ”Created
object
object
object
CI artifacts size in bytes.
Container registry size in bytes.
Indicates whether the deduplicated container registry size for the namespace is an estimated value or not.
Dependency Proxy sizes in bytes.
LFS objects size in bytes.
Packages size in bytes.
CI pipeline artifacts size in bytes.
Git repository size in bytes.
Snippets size in bytes.
Total storage in bytes.
Uploads size in bytes.
Wiki size in bytes.
object
object
[Experimental] Indicates whether GitLab Duo Core features are enabled for the group
object
OAuth provider required for step-up authentication.
object
object
object
object
object
object
object
object
object
object
object
object
object
object
The spp_repository_pipeline_access setting is only visible if the security_orchestration_policies feature is available.
Require all security policy pipelines to succeed before merge requests can be merged.
object
object
object
object
object
object
object
object
object
object
object
object
object
object
The spp_repository_pipeline_access setting is only visible if the security_orchestration_policies feature is available.
Require all security policy pipelines to succeed before merge requests can be merged.
object
Example
{ "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", "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", "ci_config_path": "", "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, "wiki_size": 0, "lfs_objects_size": 0, "job_artifacts_size": 0, "pipeline_artifacts_size": 0, "packages_size": 0, "snippets_size": 0, "uploads_size": 0, "container_registry_size": 0 }, "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", "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", "ci_config_path": "", "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, "wiki_size": 0, "lfs_objects_size": 0, "job_artifacts_size": 0, "pipeline_artifacts_size": 0, "packages_size": 0, "snippets_size": 0, "uploads_size": 0, "container_registry_size": 0 }, "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, "duo_workflow_mcp_enabled": false, "foundational_agents_default_enabled": true, "ai_catalog_restricted_to_group_hierarchy": false, "ai_usage_data_collection_enabled": false, "prompt_injection_protection_level": "no_checks", "include_recommended_allowed": false, "allow_all_unix_sockets": false, "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" }}Bad Request
Not Found