Appearance
Update Webhook
Update a webhook's name, URL, subscribed events, or enabled state. Only include fields you want to change.
PATCH /v1/products/:id/webhooks/:webhookIdPath Parameters
| Parameter | Description |
|---|---|
id | Product ID |
webhookId | Webhook ID |
Request Body
| Field | Type | Description |
|---|---|---|
name | string | Display name |
url | string | Subscriber endpoint URL |
events | string[] | Full replacement list of event types ([] = all events) |
enabled | boolean | Enable / disable the webhook |
Response
json
{
"data": {
"message": "Webhook updated"
}
}Example
bash
curl -X PATCH "https://api.packedge.dev/v1/products/prd_xxx/webhooks/whk_xxx" \
-H "Authorization: Bearer pk_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"enabled": true
}'Notes
- Re-enabling (
enabled: true) clears the auto-disable state: the consecutive-failure counter resets anddisabledAt/disabledReasonare cleared eventsreplaces the whole list — send the complete set you want
