webhook
Replace the events of a webhook
Replaces the whole set of events delivered to a webhook. Events that are not in the request are unsubscribed, so this is the operation to use when your integration owns the full list.
To add events without knowing the current list, use PATCH /webhooks/{webhookId}/events instead.
The target URL is immutable, so the uuid of the webhook does not change.
Permission: No specific permission required. A valid API key is sufficient.
Monitoring: Not needed.
put/webhooks/{webhookId}/events
Path parameters
webhookIdstring uuid required
Example:bc5c5a41-44c5-5b7c-a521-45bf56d82cbe
The identifier of the webhook, as returned in the uuid field.
Request body
Example request
{
"events": [
"call.missed",
"call.voicemail"
]
}Response
Successful operation — returns the updated subscription.
Example response
{
"uuid": "bc5c5a41-44c5-5b7c-a521-45bf56d82cbe",
"target_url": "https://api.example.com/webhooks/ringover",
"events": [
"call.started",
"call.answered",
"call.ended"
],
"signing_key": "b7c1f2e4a9d84c3f8e5b6a7d9c0e1f23"
}