Update a Webhook

Modify the URL of an existing webhook

put

Allows you to modify the URL of an existing webhook. If you specify default as true, the webhook will be set as the default webhook for your account, replacing the current default.

Authorizations
Body
webhookIDstringOptional

The ID of the webhook to update. The ID of a registered webhook can be found using the GET endpoint.

Example: 5a3ae05132ffb96e664d4626
urlstringRequired

The URL of the webhook to send alerts to when a match is found.

Example: https://mywebhook.com
defaultbooleanOptional

If true, this webhook will be used as the default for all new monitoring requests which do not specify a webhook. This will automatically override any existing default webhook. The first webhook created on an account automatically becomes the default.

Example: false
Responses
204
The call was successful. The webhook was updated.
put
PUT /v1/webhooks HTTP/1.1
Host: api.enzoic.com
Authorization: Bearer Base64(your_api_key:your_api_secret)
Content-Type: application/json
Accept: */*
Content-Length: 86

{
  "webhookID": "5a3ae05132ffb96e664d4626",
  "url": "https://mywebhook.com",
  "default": false
}

No content

Last updated

Was this helpful?