webhooks
Update Subscription
Update an existing webhook subscription.
Use this endpoint to modify a subscription's configuration. You can:
- Change the URL: Update where events are delivered
- Update event types: Modify which events trigger notifications
- Enable/disable: Temporarily pause delivery without deleting the subscription
- Recover messages: When re-enabling, optionally recover missed messages
Only include the fields you want to change. Omitted fields will retain their current values.
When re-enabling a subscription (disabled: false), you can optionally provide recover_since to automatically retry all messages that were generated while the subscription was disabled.
patch/webhooks/subscriptions/{subscription_id}
Path parameters
subscription_idstring required
The unique identifier of the subscription to update (UUID).
Example:550e8400-e29b-41d4-a716-446655440000
The unique identifier of the subscription to update (UUID).
Request body
Example request
{
"summary": "Update event types",
"value": {
"event_types": [
"sync.completed",
"sync.failed",
"sync.running"
]
}
}Response
Updated subscription
Example response
{
"created_at": "2024-03-01T08:00:00Z",
"description": "Production notifications for data team",
"disabled": false,
"filter_types": [
"sync.completed",
"sync.failed"
],
"health_status": "healthy",
"id": "c3d4e5f6-a7b8-9012-cdef-345678901234",
"updated_at": "2024-03-15T14:30:00Z",
"url": "https://api.mycompany.com/webhooks/airweave"
}