GitLab API icon

GitLab API

Gitlab

Actions1062

Project_import → postApiV4ProjectsImport

AI-generated

Summary

Imports a project into GitLab from an export file.

Inputs

  • path (required) — The new project path and name (e.g., group/subgroup/project).
  • file (required) — The project export file to be imported.
  • name — The name of the project to be imported. Defaults to the path if omitted.
  • namespace — The ID or name of the namespace for the project. Defaults to the current user's namespace.
  • overwrite — If true, overwrites an existing project with the same path and name in the target namespace.
  • override_params — Optional project settings (visibility, access levels, CI/CD, etc.) that can be overridden during import; corresponds to the many override_params[*] fields documented in the node properties.

Output shape

object

The imported project as returned by the GitLab API, containing fields such as id, name, path, web_url, etc.

Examples

Example 1: Import a project export into a specific group

Set path to 'group/subgroup/project', file to the export file, namespace to the group ID or name, and optionally adjust visibility via override_params[visibility].

Links

Discussion