Body
Required
-
Source GitLab instance URL
-
Access token to the source GitLab instance
-
Source entity type
Values are
group_entity
orproject_entity
. -
Relative path of the source entity to import
-
Destination namespace for the entity
-
Destination slug for the entity
-
Deprecated: Use :destination_slug instead. Destination slug for the entity
-
Indicates group migration should include nested projects
POST
/bulk_imports
curl \
--request POST 'https://www.gitlab.com/api/v4/bulk_imports' \
--header "Private-Token: $API_KEY" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'configuration%5Burl%5D=string&configuration%5Baccess_token%5D=string&entities%5Bsource_type%5D=group_entity&entities%5Bsource_full_path%5D=string&entities%5Bdestination_namespace%5D=string&entities%5Bdestination_slug%5D=string&entities%5Bdestination_name%5D=string&entities%5Bmigrate_projects%5D=true'
Response examples (200)
{
"id": 1,
"status": "finished",
"source_type": "gitlab",
"created_at": "2012-05-28T04:42:42-07:00",
"updated_at": "2012-05-28T04:42:42-07:00"
}