GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation unarchives a specific project in GitLab by sending a POST request to the GitLab API endpoint `/api/v4/projects/{id}/unarchive`. It is useful for restoring projects that were previously archived, making them active and accessible again. For example, a user can automate the process of unarchiving projects based on certain triggers or workflows within n8n.

Use Case Examples

  1. Unarchive a project by providing its ID to make it active again.
  2. Automate project management by unarchiving projects when certain conditions are met.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for testing or when authentication is handled externally.
Authentication Select the authentication method, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but POST is used for this operation.
Path Parameters Parameters to be included in the request path, specifically the project ID to unarchive.

Output

JSON

  • id - The ID or URL-encoded path of the project to unarchive

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and exists in the GitLab instance.
  • Verify that the API key used for authentication has sufficient permissions to unarchive projects.
  • Check the base URL to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.
  • Common error messages may include 404 Not Found if the project ID is invalid, or 403 Forbidden if the API key lacks necessary permissions.

Links

Discussion