Portainer icon

Portainer

Work with Portainer API data to manage Docker

Webhook → Delete

AI-generated

Overview

This node operation deletes a webhook resource in Portainer by its ID. It is useful for managing and cleaning up webhooks that are no longer needed or valid. For example, if a webhook is obsolete or compromised, this operation can remove it from the system.

Use Case Examples

  1. Deleting a webhook by specifying its webhook ID to stop receiving events from that webhook.
  2. Force deleting a webhook even if it is currently in use.

Properties

Name Meaning
Webhook ID The ID of the webhook to be deleted, required to identify which webhook to remove.
Force Delete A boolean flag indicating whether to force deletion of the webhook even if it is currently in use.

Output

JSON

  • statusCode - HTTP status code returned from the delete request indicating success or failure.
  • body - Response body from the delete request, typically empty or containing confirmation details.

Dependencies

  • Portainer API with an API key credential for authentication

Troubleshooting

  • Ensure the webhook ID is correct and exists in Portainer; otherwise, the delete operation will fail with a not found error.
  • If force delete is not enabled and the webhook is in use, the operation may fail; enable force delete to override this.
  • Check API key permissions to ensure the user has rights to delete webhooks.

Links

Discussion