## Update **patch** `/v1/webhooks/{id}` Updates specific fields of a webhook endpoint ### Path Parameters - `id: string` ### Body Parameters - `enabled: optional boolean` Enable or disable the webhook - `event_types: optional array of "feedback_record.created" or "feedback_record.updated" or "feedback_record.deleted" or 3 more` New list of event types (use empty array to clear). Each value must be one of WebhookEventType. - `"feedback_record.created"` - `"feedback_record.updated"` - `"feedback_record.deleted"` - `"webhook.created"` - `"webhook.updated"` - `"webhook.deleted"` - `signing_key: optional string` New signing key. NULL bytes not allowed. - `tenant_id: optional string` Omit or send null to leave unchanged. Send empty string to clear (store as null). - `url: optional string` New webhook URL. Must be an HTTP or HTTPS URL. NULL bytes not allowed. ### Returns - `id: string` Webhook ID (UUID) - `created_at: string` When the webhook was created - `enabled: boolean` Whether the webhook is active - `updated_at: string` When the webhook was last updated - `url: string` URL that receives webhook POSTs - `disabled_at: optional string` Read-only. When the webhook was disabled. Omitted when null. - `disabled_reason: optional string` Read-only. Set by the system when the webhook was disabled. Omitted when null. - `event_types: optional array of "feedback_record.created" or "feedback_record.updated" or "feedback_record.deleted" or 3 more` Event types this webhook subscribes to (empty = all) - `"feedback_record.created"` - `"feedback_record.updated"` - `"feedback_record.deleted"` - `"webhook.created"` - `"webhook.updated"` - `"webhook.deleted"` - `tenant_id: optional string` Tenant/organization identifier ### Example ```http curl http://localhost:8080/v1/webhooks/$ID \ -X PATCH \ -H 'Content-Type: application/json' \ -H "Authorization: Bearer $HUB_API_KEY" \ -d '{ "signing_key": "whsec_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "tenant_id": "org-123", "url": "https://example.com/hub-events" }' ```