curl --request PATCH \
--url https://api.example.com/v1/webhooks/{id} \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>",
"events": [
"<string>"
]
}
'Update a webhook’s URL or events.
curl --request PATCH \
--url https://api.example.com/v1/webhooks/{id} \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>",
"events": [
"<string>"
]
}
'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"]
}'
{
"id": "wh_123",
"url": "https://yourapp.com/webhooks/unosend",
"events": ["email.delivered", "email.bounced", "email.opened"]
}