Change a filter
Change which of a source's webhooks go to a destination.
PATCH
Changes which of this source's webhooks go to the destination. Each setting left out
keeps its value. Send filter_values: null to send every webhook.
To change the destination's URL or rate limit, which every source shares, use Change a destination.
Only admins can change filters.
A connected app needs the write scope: full access.
header
AuthorizationBearer <unm_ followed by 40 letters and digits>A token from the CLI page in Unmissed. Revoke it there to stop it working.
source*integerThe source's id, from List sources.
Format
int64destination*integerThe destination's id, from List destinations.
Format
int64application/json- body
Only the filter settings to change. Each one left out keeps its value.
filter_on?|Value in
"body""header"nullfilter_field?|Length
length <= 200filter_values?|Values to match, or null to send every webhook.
Length
length <= 2000The connection as saved.
application/json- response
A source sending to a destination.
source_id*integerFormat
int64destination_id*integerFormat
int64filter_on*|Value in
"body""header"nullfilter_field*string|nullfilter_values*string|nullcurl -X PATCH 'http://localhost:8080/api/v1/sources/0/destinations/0' \
-H 'Authorization: Bearer ' \
-H 'Content-Type: application/json' \
-d '{
"filter_values": "invoice.*, customer.subscription.*"
}'Example Response
{
"source_id": 0,
"destination_id": 0,
"filter_on": "body",
"filter_field": "string",
"filter_values": "string"
}