---
title: "Transfer a group"
method: POST
path: "/api/v4/groups/{id}/transfer"
tags: ["groups"]
---

# Transfer a group

`POST /api/v4/groups/{id}/transfer`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/groups/{id}/transfer`
- Auth: none declared

Transfers a group to another parent group or transforms a subgroup into a top-level group. You must be an administrator or have the Owner role for the group.

## Path parameters

- `id` string, required

## Request body

- PostApiV4GroupsIdTransfer: Transfer a group
  - `group_id` integer: The ID of the target group to which the group needs to be transferred to.If not provided, the source group will be promoted to a top-level group.

## Response `201`

Transfer a group

---

[API](https://skmtc.dev/gitlab/apis/gitlab-api.md) - [All operations](https://skmtc.dev/gitlab/apis/gitlab-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitlab/apis/gitlab-api/revisions/b234947ef3f2?raw)
