GitLab API

GitlabTool

Actions905

Overview

This node operation performs a POST request to the GitLab API endpoint `/api/v4/projects/{id}/export_relations`. It is used to export relations of a specific project identified by its ID or URL-encoded path. This operation is useful for automating project data export tasks within GitLab, such as exporting project relations for backup, migration, or integration purposes.

Use Case Examples

  1. Exporting project relations for a project with a known ID to integrate with another system.
  2. Automating backups of project relations data for compliance or archival.

Properties

Name Meaning
Skip Authentication If set to true, the node will skip authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to POST.
Path Parameters The path parameter 'id' specifies the ID or URL-encoded path of the project to export relations from.

Output

JSON

  • response - The JSON response from the GitLab API containing the exported project relations data.

Dependencies

  • Requires GitLab API key authentication unless 'Skip Authentication' is enabled.

Troubleshooting

  • Ensure the project ID or URL-encoded path is correct to avoid 404 Not Found errors.
  • Verify that the API key has sufficient permissions to export project relations to prevent authorization errors.
  • Check the base URL if using a self-hosted GitLab instance to avoid connection issues.

Links

Discussion