Skip to main content

PATCH /webhooks/rest/v1/webhooks/{id} REST API Endpoint

Loading...

Updated on
Jan 22, 2026

PATCH /webhooks/rest/v1/webhooks/{id} REST API Endpoint

The filter_function parameter can only be updated for existing webhooks that were created with custom filters. New webhooks created from templates cannot use custom filters. For advanced filtering capabilities, consider using Streams.

Parameters

Path Parameters

id
string
REQUIRED
Loading...

Body Parameters

name
string
Loading...
filter_function
string
Loading...
notification_email
string
Loading...
destination_attributes
object
Loading...
url
string
Loading...
security_token
string
Loading...
compression
string
Loading...
status
string
Loading...

Returns

id
string
Loading...
created_at
string
Loading...
updated_at
string
Loading...
name
string
Loading...
network
string
Loading...
filter_function
string
Loading...
notification_email
string
Loading...
destination_attributes
object
Loading...
status
string
Loading...
Request
1
curl -X PATCH \
2
"https://api.quicknode.com/webhooks/rest/v1/webhooks/YOUR_WEBHOOK_ID" \
3
-H "accept: application/json" \
4
-H "Content-Type: application/json" \
5
-H "x-api-key: YOUR_API_KEY" \
6
-d $'{
7
"name": "Updated Webhook Name",
8
"filter_function": "dHJ5IHsKICAgIHZhciBkYXRhID0gSlNPTi5wYXJzZShzdHJlYW1EYXRhKTsKICAgIC8vIENvbnZlcnQgaGV4IG51bWJlciB0byBkZWNpbWFsCiAgICB2YXIgbnVtYmVyRGVjaW1hbCA9IHBhcnNlSW50KGRhdGEubnVtYmVyLCAxNik7CiAgICB2YXIgZmlsdGVyZWREYXRhID0ge2hhc2g6IGRhdGEuaGFzaCwgbnVtYmVyOiBudW1iZXJEZWNpbWFsfTsKICAgIEpTT04uc3RyaW5naWZ5KGZpbHRlcmVkRGF0YSk7Cn0gY2F0Y2ggKGUpIHsKICAgIEpTT04uc3RyaW5naWZ5KHtlcnJvcjogZS5tZXNzYWdlfSk7Cn0K",
9
"notification_email": "updated@example.com",
10
"destination_attributes": {
11
"url": "https://webhook.site/your-updated-url",
12
"security_token": "updated-security-token",
13
"compression": "gzip"
14
},
15
"status": "active"
16
}'
1
curl -X PATCH \
2
"https://api.quicknode.com/webhooks/rest/v1/webhooks/YOUR_WEBHOOK_ID" \
3
-H "accept: application/json" \
4
-H "Content-Type: application/json" \
5
-H "x-api-key: YOUR_API_KEY" \
6
-d $'{
7
"name": "Updated Webhook Name",
8
"filter_function": "dHJ5IHsKICAgIHZhciBkYXRhID0gSlNPTi5wYXJzZShzdHJlYW1EYXRhKTsKICAgIC8vIENvbnZlcnQgaGV4IG51bWJlciB0byBkZWNpbWFsCiAgICB2YXIgbnVtYmVyRGVjaW1hbCA9IHBhcnNlSW50KGRhdGEubnVtYmVyLCAxNik7CiAgICB2YXIgZmlsdGVyZWREYXRhID0ge2hhc2g6IGRhdGEuaGFzaCwgbnVtYmVyOiBudW1iZXJEZWNpbWFsfTsKICAgIEpTT04uc3RyaW5naWZ5KGZpbHRlcmVkRGF0YSk7Cn0gY2F0Y2ggKGUpIHsKICAgIEpTT04uc3RyaW5naWZ5KHtlcnJvcjogZS5tZXNzYWdlfSk7Cn0K",
9
"notification_email": "updated@example.com",
10
"destination_attributes": {
11
"url": "https://webhook.site/your-updated-url",
12
"security_token": "updated-security-token",
13
"compression": "gzip"
14
},
15
"status": "active"
16
}'
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free