GitLab API icon

GitLab API

Gitlab

Actions1062

Group_import → postApiV4GroupsImport

AI-generated

Summary

Post a group import request to GitLab by uploading a group export file along with specifying the group path and name, optionally setting a parent group ID or organization ID to import the group under.

Inputs

  • path (required) — The path for the new group to be imported.
  • name (required) — The name of the new group to be imported.
  • file (required) — The GitLab group export file to import, as a file upload.
  • parent_id — Optional ID of the parent group under which to import this group; defaults to the current user's namespace if omitted.
  • organization_id — Optional ID of the organization that the group will belong to.
  • baseUrl — The base URL of the GitLab instance; defaults to 'https://gitlab.com'.
  • skipAuthentication — When true, disables authentication for this request; default is false.

Output shape

a single object representing the response from the /api/v4/groups/import POST endpoint

The response shape corresponds to GitLab's group import API result. The operation performs an HTTP POST to /api/v4/groups/import with form-data including the required file upload and group details. Authentication is used by default unless 'Skip Authentication' is enabled.

Links

Discussion