curl --request PATCH \
--url https://api.zerion.io/v1/tx-subscriptions/{subscription_id}/filters \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.zerion.io/v1/tx-subscriptions/{subscription_id}/filters"
payload = {}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.zerion.io/v1/tx-subscriptions/{subscription_id}/filters', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zerion.io/v1/tx-subscriptions/{subscription_id}/filters"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"errors": [
{
"title": "Parameter is malformed",
"detail": "Some validation errors will be described here"
}
]
}{
"errors": [
{
"title": "Unauthorized Error",
"detail": "The API key is invalid, please, make sure that you are using a valid key"
}
]
}{
"errors": [
{
"title": "Resource was not found",
"detail": "Requested resource was not found, try later"
}
]
}{
"errors": [
{
"title": "Too many requests",
"detail": "Your request had been throttled"
}
]
}Update filters within subscription
Replace or clear the event filters on an existing webhook subscription.
curl --request PATCH \
--url https://api.zerion.io/v1/tx-subscriptions/{subscription_id}/filters \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.zerion.io/v1/tx-subscriptions/{subscription_id}/filters"
payload = {}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.zerion.io/v1/tx-subscriptions/{subscription_id}/filters', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zerion.io/v1/tx-subscriptions/{subscription_id}/filters"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"errors": [
{
"title": "Parameter is malformed",
"detail": "Some validation errors will be described here"
}
]
}{
"errors": [
{
"title": "Unauthorized Error",
"detail": "The API key is invalid, please, make sure that you are using a valid key"
}
]
}{
"errors": [
{
"title": "Resource was not found",
"detail": "Requested resource was not found, try later"
}
]
}{
"errors": [
{
"title": "Too many requests",
"detail": "Your request had been throttled"
}
]
}Authorizations
Path Parameters
ID of the subscription
"77e77447-1586-40e8-a75b-467ef939a0b1"
Body
Exclusion filters for the subscription. Conditions are combined with OR: an
event matching any one of them is dropped and no webhook is delivered for it.
Filters are absent from the response when none are set. What omitting the
field or sending null means is specific to the request that carries it —
see that operation's own description.
Field paths below refer to the delivered webhook transaction payload, not to
this subscription resource. A condition does not match an event lacking the
value it compares, so an event with no dapp is not excluded by
protocol_ids.
Show child attributes
Show child attributes
Response
Successfully updated filters, including a no-op when the value was already unchanged
Was this page helpful?