GitLab Project import API
Use this API to [import repositories from external sources](https://docs.gitlab.com/user/import/) and to [migrate a project](https://docs.gitlab.com/user/project/settings/import_export/) between GitLab instances. If you first migrate the parent group structure with the [group import and export API](https://docs.gitlab.com/api/group_import_export/), you can preserve relationships that span the group, such as connections between project issues and group epics. After an import, use the [project-level CI/CD variables API](https://docs.gitlab.com/api/project_level_variables/) to restore CI/CD variables. You must still migrate your [container registry](https://docs.gitlab.com/user/packages/container_registry/) over a series of Docker pulls and pushes, and re-run any CI/CD pipelines to retrieve build artifacts. The project relations export endpoints are used by the destination instance during [group migration by direct transfer](https://docs.gitlab.com/user/group/import/) to migrate a project structure, and you don't usually need to call them yourself. In this context, a relation is an exportable item such as a merge request, including any related items such as a label. > [!note] > User contribution mapping is not supported when you import projects to a > [personal namespace](https://docs.gitlab.com/user/namespace/#types-of-namespaces). All > contributions are assigned to the personal namespace owner and cannot be reassigned.