Update a Webhook
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.
The ID of the webhook to update. The ID of a registered webhook can be found using the GET endpoint.
5a3ae05132ffb96e664d4626
The URL of the webhook to send alerts to when a match is found.
https://mywebhook.com
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.
false
The call was successful. The webhook was updated.
Required parameters were missing or the webhook URL is not a valid URL.
You attempted to register a webhook on a domain you have not verified ownership of. The webhook was not created.
You attempted to register a webhook with the same URL as an existing webhook. The existing webhook was not modified.
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?