GitLab API

GitlabTool

Actions905

Overview

This node operation triggers the export of a project in GitLab by sending a POST request to the GitLab API endpoint `/api/v4/projects/{id}/export`. It is useful for automating the export of project data, such as for backup, migration, or archival purposes. For example, a user can specify a project ID to initiate its export process programmatically within an n8n workflow.

Use Case Examples

  1. Automate exporting a GitLab project before a scheduled backup.
  2. Trigger project export as part of a migration workflow to another GitLab instance.

Properties

Name Meaning
Skip Authentication Determines whether to 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 to which the API request is sent, defaulting to https://gitlab.com.
Method The HTTP method used for the request, defaulting to POST for this operation.
Path Parameters The path parameters for the API request, specifically the project ID or URL-encoded path required to identify the project to export.

Output

JSON

  • id - The ID or URL-encoded path of the project being exported.
  • export_status - The status of the export process for the project.
  • export_error - Any error message related to the export process, if applicable.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and accessible with the authenticated user.
  • If authentication is skipped, the request may fail due to lack of permissions.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.
  • Common errors include 404 Not Found if the project ID is invalid or 401 Unauthorized if authentication fails.

Links

Discussion