GitLab API

GitlabTool

Actions1095

Group_import → postApiV4GroupsImport

AI-generated

Summary

Import a group into GitLab using a group export file by submitting a POST request to the /api/v4/groups/import endpoint.

Inputs

  • path (required) — The URL path identifier for the new group.
  • name (required) — The display name of the new group to import.
  • file (required) — The group export file to upload and import.
  • parent_id — Optional ID of the parent group under which this group will be imported; defaults to the current user's namespace if omitted.
  • organization_id — Optional ID of the organization to which the group will belong.
  • baseUrl — The base URL of the GitLab instance; defaults to https://gitlab.com.
  • skipAuthentication — Whether to skip authentication; defaults to false.

Output shape

a single JSON object representing the details of the imported group as returned by the GitLab API.

The response contains the created group resource details. Authentication is mandatory unless explicitly skipped. The operation uses formData to submit parameters including the uploaded file.

Links

Discussion