GitLab API

GitlabTool

Actions1095

Project_import → getApiV4ProjectsIdRelationImports

AI-generated

Summary

Retrieve the import relation details of a GitLab project by project ID or URL-encoded path.

Inputs

  • id (required) — The ID or URL-encoded path of the project for which to get relation-imports.
  • skipAuthentication — Set to true to skip authentication; otherwise, uses GitLab API credentials.
  • baseUrl — The base URL of the GitLab server, defaulting to https://gitlab.com.
  • method — The HTTP method used to query the endpoint, defaults to GET.

Output shape

an object representing the relation imports information of the specified GitLab project

The operation requires the 'id' path parameter; authentication is used by default unless skipped. The response data shape follows GitLab's relation-imports API schema.

Examples

Example 1: Retrieve import relations for a project with ID 1234, using default GitLab.com base URL and authentication.

Set 'id' to '1234', keep 'skipAuthentication' as false, 'method' as GET, 'baseUrl' as default.

Links

Discussion