POST
/
radar
/
v1
/
tracking-scripts
/
{trackingScriptId}
/
filters
curl --request POST \
  --url https://api.snitcher.com/radar/v1/tracking-scripts/{trackingScriptId}/filters \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "tracking_script_filter_type": "blacklist",
  "tracking_script_filter_field": "country",
  "filter_value": "US"
}'
{
  "success": true,
  "data": {
    "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "tracking_script_filter_field": "country",
    "tracking_script_filter_type": "blacklist",
    "filter_value": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Enter your personal access token (PAT) to authenticate

Path Parameters

trackingScriptId
string
required

The ID of the tracking script to create a filter for

Example:

"12345"

Body

application/json

Tracking script filter parameters

The body is of type object.

Response

200 - application/json

Tracking script filter created successfully

The response is of type object.