GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation deletes a system hook in GitLab by its hook ID. It is useful for managing GitLab system hooks programmatically, such as removing outdated or unnecessary hooks to maintain system integrity and security. For example, an automation workflow could use this node to clean up hooks after a project is archived or deleted.

Use Case Examples

  1. Deleting a system hook by specifying its hook ID to stop receiving system event notifications from GitLab.
  2. Automating the removal of system hooks as part of a GitLab maintenance or cleanup process.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request.
Authentication The authentication method used for the GitLab API request.
baseUrl The base URL of the GitLab instance to which the request is sent.
Method The HTTP method used for the request, default is DELETE.
Path Parameters The path parameters for the request, specifically the hook_id which identifies the system hook to delete.

Output

JSON

  • statusCode - HTTP status code of the delete operation response.
  • body - Response body from the GitLab API after attempting to delete the system hook.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the hook_id path parameter is provided and valid; missing or incorrect hook_id will cause the request to fail.
  • Authentication errors may occur if the GitLab API credential is missing or invalid; verify the API key or token used.
  • The baseUrl must be correctly set to the GitLab instance URL; incorrect URLs will cause connection failures.
  • HTTP errors such as 404 indicate the specified hook_id does not exist or is inaccessible.
  • Check network connectivity and GitLab server status if requests time out or fail unexpectedly.

Links

Discussion