Skip to content

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/:webhookId

Path Parameters

ParameterDescription
idProduct ID
webhookIdWebhook ID

Request Body

FieldTypeDescription
namestringDisplay name
urlstringSubscriber endpoint URL
eventsstring[]Full replacement list of event types ([] = all events)
enabledbooleanEnable / 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 and disabledAt / disabledReason are cleared
  • events replaces the whole list — send the complete set you want