Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node operation allows you to delete a specific user webhook by its ID. It is useful in scenarios where you need to manage and clean up user webhooks programmatically, such as removing outdated or unwanted hooks that trigger actions on user events.

For example, if your system automatically creates webhooks for users but you want to remove certain hooks based on changing requirements or user requests, this operation provides a straightforward way to do so.

Properties

Name Meaning
Id The unique identifier of the hook to delete

Output

The output will contain JSON data indicating the result of the deletion operation. Typically, this might include confirmation of successful deletion or details about any error encountered. There is no indication that binary data is returned by this operation.

Dependencies

  • Requires an API key credential to authenticate with the external service.
  • The node interacts with the Gitea API endpoint configured via credentials, specifically targeting the /api/v1 base URL.
  • Proper permissions are needed to delete user webhooks through the API.

Troubleshooting

  • Invalid or missing Id: If the provided hook ID does not exist or is invalid, the API will likely return an error. Ensure the ID is correct and corresponds to an existing webhook.
  • Authentication errors: If the API key or authentication token is incorrect or expired, the request will fail. Verify the credentials configured in n8n.
  • Permission issues: Lack of sufficient permissions to delete hooks may cause errors. Confirm that the API key has the necessary rights.
  • Network or connectivity problems: Ensure that the n8n instance can reach the Gitea server URL specified in the credentials.

Links and References

Discussion