Update webhook
Changes the URL or events, or pauses the endpoint.
PATCH/webhooks/:id
Path parameters
idstringrequiredThe webhook ID.
Body parameters
urlstringNew URL.
eventsstring[]New event list.
activebooleanfalsepauses deliveries.
Request
curl -X PATCH 'https://api.mailvina.com/webhooks/:id' \
-H 'Authorization: Bearer mv_xxxxxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"active": false
}'Response
{
"object": "webhook",
"id": "a1f9c1d2-7d3e-4b8f-9a0c-2e5b6d7f8a90"
}