PATCH /webhooks/rest/v1/webhooks/{id} REST API Endpoint
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
curl -X PATCH \
"https://api.quicknode.com/webhooks/rest/v1/webhooks/YOUR_WEBHOOK_ID" \
-H "accept: application/json" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d $'{
"name": "Updated Webhook Name",
"filter_function": "dHJ5IHsKICAgIHZhciBkYXRhID0gSlNPTi5wYXJzZShzdHJlYW1EYXRhKTsKICAgIC8vIENvbnZlcnQgaGV4IG51bWJlciB0byBkZWNpbWFsCiAgICB2YXIgbnVtYmVyRGVjaW1hbCA9IHBhcnNlSW50KGRhdGEubnVtYmVyLCAxNik7CiAgICB2YXIgZmlsdGVyZWREYXRhID0ge2hhc2g6IGRhdGEuaGFzaCwgbnVtYmVyOiBudW1iZXJEZWNpbWFsfTsKICAgIEpTT04uc3RyaW5naWZ5KGZpbHRlcmVkRGF0YSk7Cn0gY2F0Y2ggKGUpIHsKICAgIEpTT04uc3RyaW5naWZ5KHtlcnJvcjogZS5tZXNzYWdlfSk7Cn0K",
"notification_email": "updated@example.com",
"destination_attributes": {
"url": "https://webhook.site/your-updated-url",
"security_token": "updated-security-token",
"compression": "gzip"
},
"status": "active"
}' const axios = require('axios')
const webhookId = 'YOUR_WEBHOOK_ID' // Replace with your actual webhook ID
const url = `https://api.quicknode.com/webhooks/rest/v1/webhooks/${webhookId}`
const payload = {
name: 'Updated Webhook Name',
filter_function:
'dHJ5IHsKICAgIHZhciBkYXRhID0gSlNPTi5wYXJzZShzdHJlYW1EYXRhKTsKICAgIC8vIENvbnZlcnQgaGV4IG51bWJlciB0byBkZWNpbWFsCiAgICB2YXIgbnVtYmVyRGVjaW1hbCA9IHBhcnNlSW50KGRhdGEubnVtYmVyLCAxNik7CiAgICB2YXIgZmlsdGVyZWREYXRhID0ge2hhc2g6IGRhdGEuaGFzaCwgbnVtYmVyOiBudW1iZXJEZWNpbWFsfTsKICAgIEpTT04uc3RyaW5naWZ5KGZpbHRlcmVkRGF0YSk7Cn0gY2F0Y2ggKGUpIHsKICAgIEpTT04uc3RyaW5naWZ5KHtlcnJvcjogZS5tZXNzYWdlfSk7Cn0K',
notification_email: 'updated@example.com',
destination_attributes: {
url: 'https://webhook.site/your-updated-url',
security_token: 'updated-security-token',
compression: 'gzip',
},
status: 'active',
}
const headers = {
accept: 'application/json',
'Content-Type': 'application/json',
'x-api-key': 'YOUR_API_KEY', // Replace with your actual API key
}
axios
.patch(url, payload, { headers })
.then(response => {
console.log(response.data)
})
.catch(error => {
console.error('Error:', error.response?.data || error.message)
})
import requests
webhook_id = "YOUR_WEBHOOK_ID" # Replace with your actual webhook ID
url = f"https://api.quicknode.com/webhooks/rest/v1/webhooks/{webhook_id}"
payload = {
"name": "Updated Webhook Name",
"filter_function": "dHJ5IHsKICAgIHZhciBkYXRhID0gSlNPTi5wYXJzZShzdHJlYW1EYXRhKTsKICAgIC8vIENvbnZlcnQgaGV4IG51bWJlciB0byBkZWNpbWFsCiAgICB2YXIgbnVtYmVyRGVjaW1hbCA9IHBhcnNlSW50KGRhdGEubnVtYmVyLCAxNik7CiAgICB2YXIgZmlsdGVyZWREYXRhID0ge2hhc2g6IGRhdGEuaGFzaCwgbnVtYmVyOiBudW1iZXJEZWNpbWFsfTsKICAgIEpTT04uc3RyaW5naWZ5KGZpbHRlcmVkRGF0YSk7Cn0gY2F0Y2ggKGUpIHsKICAgIEpTT04uc3RyaW5naWZ5KHtlcnJvcjogZS5tZXNzYWdlfSk7Cn0K",
"notification_email": "updated@example.com",
"destination_attributes": {
"url": "https://webhook.site/your-updated-url",
"security_token": "updated-security-token",
"compression": "gzip"
},
"status": "active"
}
headers = {
"accept": "application/json",
"Content-Type": "application/json",
"x-api-key": "YOUR_API_KEY" # Replace with your actual API key
}
response = requests.patch(url, headers=headers, json=payload)
print(response.text) require "uri"
require "net/http"
require "json"
webhook_id = "YOUR_WEBHOOK_ID" # Replace with your actual webhook ID
url = URI("https://api.quicknode.com/webhooks/rest/v1/webhooks/#{webhook_id}")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["accept"] = "application/json"
request["Content-Type"] = "application/json"
request["x-api-key"] = "YOUR_API_KEY" # Replace with your actual API key
request.body = {
"name" => "Updated Webhook Name",
"filter_function" => "dHJ5IHsKICAgIHZhciBkYXRhID0gSlNPTi5wYXJzZShzdHJlYW1EYXRhKTsKICAgIC8vIENvbnZlcnQgaGV4IG51bWJlciB0byBkZWNpbWFsCiAgICB2YXIgbnVtYmVyRGVjaW1hbCA9IHBhcnNlSW50KGRhdGEubnVtYmVyLCAxNik7CiAgICB2YXIgZmlsdGVyZWREYXRhID0ge2hhc2g6IGRhdGEuaGFzaCwgbnVtYmVyOiBudW1iZXJEZWNpbWFsfTsKICAgIEpTT04uc3RyaW5naWZ5KGZpbHRlcmVkRGF0YSk7Cn0gY2F0Y2ggKGUpIHsKICAgIEpTT04uc3RyaW5naWZ5KHtlcnJvcjogZS5tZXNzYWdlfSk7Cn0K",
"notification_email" => "updated@example.com",
"destination_attributes" => {
"url" => "https://webhook.site/your-updated-url",
"security_token" => "updated-security-token",
"compression" => "gzip"
},
"status" => "active"
}.to_json
response = https.request(request)
puts response.body Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free