GitLab API

GitlabTool

Actions1095

Project_import → postApiV4ProjectsImportRelation

AI-generated

Summary

Import a specified relation (issues, merge_requests, ci_pipelines, or milestones) into a GitLab project using a provided project export file.

Inputs

  • path (required) — The GitLab project path and name to import the relation into.
  • file (required) — The project export file containing the relation data to import.
  • relation (required) — The type of relation to import; must be one of issues, merge_requests, ci_pipelines, or milestones.
  • baseUrl — The base URL of the GitLab instance; defaults to https://gitlab.com.
  • skipAuthentication — Boolean to skip authentication; defaults to false.

Output shape

a JSON object representing the response from the GitLab API for the import relation request

The response format corresponds to the GitLab API's import-relation endpoint; authentication is required unless skipAuthentication is true. The operation uses formData parameters and requires a valid project export file to be uploaded.

Links

Discussion