Update webhook

Changes the URL or events, or pauses the endpoint.

PATCH/webhooks/:id

Path parameters

  • idstringrequired

    The webhook ID.

Body parameters

  • urlstring

    New URL.

  • eventsstring[]

    New event list.

  • activeboolean

    false pauses 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"
}