Skip to content

Create a group import

POST
/api/v4/groups/import

Creates a group import. The maximum import file size can be set by the Administrator on GitLab Self-Managed (defaults to 0 (unlimited)).

Media type multipart/form-data
object
path
required

Group path

string
nullable
name
required

Group name

string
nullable
file
required

The group export file to be imported

string format: binary
nullable
parent_id

The ID of the parent group that the group will be imported into. Defaults to the current user’s namespace.

integer
nullable
organization_id

The ID of the organization that the group will be part of.

integer
nullable

Accepted

Bad request

Unauthorized

Forbidden

Service unavailable