Skip to main content
PATCH
/
v1
/
webhooks
/
{id}
Update Webhook
curl --request PATCH \
  --url https://api.example.com/v1/webhooks/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "events": [
    "<string>"
  ]
}
'
id
string
required
The ID of the webhook.
url
string
The new URL to receive webhook events.
events
string[]
New list of events to subscribe to.

Request

cURL
curl -X PATCH https://www.unosend.co/api/v1/webhooks/wh_123 \
  -H "Authorization: Bearer un_xxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "events": ["email.delivered", "email.bounced", "email.opened"]
  }'

Response

200
{
  "id": "wh_123",
  "url": "https://yourapp.com/webhooks/unosend",
  "events": ["email.delivered", "email.bounced", "email.opened"]
}