Update a webhook endpoint
PATCH/api/v1/webhooks/{id}
PATCH /webhooks/{id}
curl -X PATCH 'https://www.unitpost.com/api/v1/webhooks/wh_123' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'User-Agent: my-app/1.0' \
-H 'Content-Type: application/json' \
-d '{
"events": [
"email.delivered"
]
}'Response · 200
{
"object": "webhook",
"id": "id_123",
"name": "Example",
"url": "https://example.com",
"events": [
"string"
],
"status": "enabled",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z"
}Update a webhook endpoint's url, subscribed events, name, and/or status (use status to pause and re-enable deliveries without deleting the endpoint). The signing secret is never changed by an update. Verify your changes with Send a test event. Requires the webhooks:manage capability.
Parameters1 field
| Field | Type | Description |
|---|---|---|
idrequired | string · path | — |
Request body4 fields
| Field | Type | Description |
|---|---|---|
url | string | — |
events | string[] | — |
name | string | — |
status | enumenabled | disabled | — |
Response · 200 fields8 fields
| Field | Type | Description |
|---|---|---|
objectrequired | string | — |
idrequired | string | — |
namerequired | string | — |
urlrequired | string | — |
eventsrequired | string[] | — |
statusrequired | enumenabled | disabled | suspended | — |
created_atrequired | string | — |
updated_atrequired | string | — |
200401403404409422