Start a group or project migration
POST
/api/v4/bulk_imports
Starts a group or project migration. To migrate a project, specify entities[project_entity].
Authorizations
Section titled “ Authorizations ”Request Body required
Section titled “ Request Body required ” Media type application/x-www-form-urlencoded
object
configuration
required
The source GitLab instance configuration
object
url
required
Source GitLab instance URL
string
access_token
required
Access token to the source GitLab instance
string
entities
required
List of entities to import
Array<object>
object
source_type
required
Source entity type
string
source_full_path
required
Relative path of the source entity to import
string
Example
'source/full/path' not 'https://example.com/source/full/path' destination_namespace
required
Destination namespace for the entity
string
Example
'destination_namespace' or 'destination/namespace' destination_slug
Destination slug for the entity
string
Example
'destination_slug' not 'destination/slug' destination_name
Deprecated: Use :destination_slug instead. Destination slug for the entity
string
Example
'destination_slug' not 'destination/slug' migrate_projects
Indicates group migration should include nested projects
boolean
migrate_memberships
The option to migrate memberships or not
boolean
Responses
Section titled “ Responses ”Created
Media type application/json
object
id
integer format: int64
status
string
source_type
string
source_url
string
created_at
string format: date-time
updated_at
string format: date-time
has_failures
boolean
Example
{ "id": 1, "status": "finished", "source_type": "gitlab", "source_url": "https://source.gitlab.com/", "created_at": "2012-05-28T04:42:42-07:00", "updated_at": "2012-05-28T04:42:42-07:00", "has_failures": false}Bad request
Unauthorized
Not found
Unprocessable entity
Service unavailable