GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation restores a previously deleted project in GitLab by sending a POST request to the GitLab API endpoint `/api/v4/projects/{id}/restore`. It is useful for users who want to recover projects that were accidentally deleted or need to reinstate archived projects. For example, a user can specify the project ID to restore that specific project back to an active state.

Use Case Examples

  1. Restore a deleted project by providing its project ID to the node, which triggers the GitLab API to restore the project.
  2. Automate project recovery workflows by integrating this node in an n8n workflow to restore projects based on certain triggers or conditions.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
Authentication Type of authentication used for the API request, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance to which the API request is sent.
Method HTTP method used for the API request, defaulting to POST for this operation.
Path Parameters Parameters included in the URL path, specifically the project ID to identify which project to restore.

Output

JSON

  • id - The unique identifier of the restored project.
  • name - The name of the restored project.
  • description - Description of the restored project.
  • default_branch - The default branch of the restored project.
  • visibility - Visibility level of the restored project (e.g., private, internal, public).
  • created_at - Timestamp when the project was created.
  • last_activity_at - Timestamp of the last activity in the project.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and corresponds to a deleted project that can be restored.
  • Authentication errors may occur if the GitLab API key is missing or invalid; verify the API key credentials.
  • API rate limits or permission issues may cause the restore operation to fail; check user permissions and API usage limits.

Links

Discussion