GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes a specific wiki page from a GitLab project using the GitLab API. It is useful for managing project documentation by programmatically removing outdated or unnecessary wiki pages. For example, a user can automate the cleanup of wiki pages in a project by specifying the project ID and the slug of the wiki page to delete.

Use Case Examples

  1. Automate deletion of obsolete wiki pages in a GitLab project.
  2. Remove a specific wiki page as part of a project cleanup script.

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 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 GET but set to DELETE for this operation.
Path Parameters Parameters required in the request path to identify the wiki page to delete, including the project ID and the wiki page slug.

Output

JSON

  • success - Indicates whether the wiki page was successfully deleted.
  • statusCode - HTTP status code returned by the API after the delete operation.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID and wiki slug are correct and exist in the GitLab instance.
  • Verify that the authentication token has sufficient permissions to delete wiki pages.
  • Check the base URL to ensure it points to the correct GitLab instance.
  • Common error messages include 404 Not Found if the wiki page or project does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion