GitLab API

GitlabTool

Actions905

Overview

This node operation deletes the Pages of a specified project in GitLab using the GitLab API. It is useful for automating the removal of project pages, for example, when cleaning up or decommissioning projects. The user provides the project ID or URL-encoded path to identify which project's pages to delete.

Use Case Examples

  1. Deleting the Pages of a project by specifying its project ID to free up resources or remove outdated content.
  2. Automating project cleanup workflows by removing Pages associated with projects that are no longer active.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, 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 DELETE is used for this operation.
Path Parameters Parameters to specify the project ID or URL-encoded path to identify the project whose Pages are to be deleted.

Output

JSON

  • success - Indicates whether the Pages deletion was successful.
  • statusCode - HTTP status code returned by the GitLab API for the delete request.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID or URL-encoded path is correct and accessible by the authenticated user.
  • Verify that the GitLab API key credential has sufficient permissions to delete project Pages.
  • Check the baseUrl is correctly set if using a self-hosted GitLab instance.
  • Common error messages include 404 Not Found if the project does not exist or is inaccessible, and 403 Forbidden if the API key lacks permissions.

Links

Discussion