Skip to Content
Unmissed Cloud is coming soon.Join the waitlistJoin
Unmissed

Change a filter

Change which of a source's webhooks go to a destination.

PATCH
/api/v1/sources/{source}/destinations/{destination}

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.

Authorization

headerAuthorizationBearer <unm_ followed by 40 letters and digits>

A token from the CLI page in Unmissed. Revoke it there to stop it working.

Path Parameters

source*integer

The source's id, from List sources.

Formatint64
destination*integer

The destination's id, from List destinations.

Formatint64

Request Body

application/json
  1. body

Only the filter settings to change. Each one left out keeps its value.

filter_on?|
Value in"body""header"null
filter_field?|
Lengthlength <= 200
filter_values?|

Values to match, or null to send every webhook.

Lengthlength <= 2000

Response Body

The connection as saved.

application/json
  1. response

A source sending to a destination.

source_id*integer
Formatint64
destination_id*integer
Formatint64
filter_on*|
Value in"body""header"null
filter_field*string|null
filter_values*string|null
Example Request
curl -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"
}