GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation deletes a specific URL variable key from a hook in GitLab using the GitLab API. It is useful for managing and cleaning up hook configurations by removing unwanted or obsolete URL variables associated with a particular hook ID.

Use Case Examples

  1. Deleting a URL variable key from a GitLab hook to update webhook configurations.
  2. Removing sensitive or incorrect URL variables from a hook to ensure proper webhook behavior.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated endpoints.
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 HTTP method to use for the request, defaulting to GET but can be set to DELETE for this operation.
Path Parameters Parameters required in the URL path to identify the hook and the URL variable key to delete.

Output

JSON

  • success - Indicates whether the deletion was successful
  • statusCode - HTTP status code returned by the API
  • message - Additional message or error information from the API response

Dependencies

  • GitLab API authentication

Troubleshooting

  • Ensure the hook_id and key path parameters are correctly provided and valid to avoid 404 Not Found errors.
  • If authentication is skipped, the request may fail due to lack of permissions; verify credentials if errors occur.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure the correct API endpoint is targeted.

Links

Discussion