cURL
curl --request PUT \ --url https://api.snitcher.com/radar/operator/v1/tracking-scripts/{trackingScriptId}/filters \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "filters": [ { "tracking_script_filter_field": "country", "tracking_script_filter_type": "blacklist", "filter_value": "<string>" } ] } '
{ "success": true, "data": [ { "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "filter_value": "<string>", "tracking_script_filter_field": "country", "tracking_script_filter_type": "blacklist" } ] }
Enter your personal access token (PAT) to authenticate
The ID of the tracking script to replace filters for
"12345"
New set of tracking script filters to replace existing ones
Show child attributes
Must be one of the TrackingScriptFilterField enum values
country
url
Type of filter
blacklist
whitelist
Value for the filter
255
Tracking script filters replaced successfully
true