PATCH
/
radar
/
operator
/
v1
/
tracking-scripts
/
{trackingScriptId}
Update a tracking script
curl --request PATCH \
  --url https://api.snitcher.com/radar/operator/v1/tracking-scripts/{trackingScriptId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "active": "false"
}'
{
  "success": true,
  "data": [
    {
      "tracking_script_id": "<string>",
      "internal_identifier": "<string>",
      "description": "<string>",
      "active": true,
      "radar_config": {
        "profile_id": "<string>",
        "api_endpoint": "<string>",
        "cdn": "<string>",
        "namespace": "<string>",
        "features": {
          "debug_mode": true,
          "form_tracking": true,
          "click_tracking": true,
          "session_tracking": true,
          "error_capture": true
        },
        "transport": {
          "batch_size": 123,
          "flush_interval": 123,
          "use_beacon": true,
          "blocked_events": [
            "<string>"
          ]
        },
        "integrations": {
          "ga": {
            "connections": [
              {
                "measurement_id": "<string>",
                "ga_version": "<string>",
                "mappings": [
                  {
                    "attribute": "<string>",
                    "dimension": "<string>",
                    "fallback_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 update

Example:

"12345"

Body

application/json

Tracking script update parameters

The body is of type object.

Response

200 - application/json

Tracking script updated successfully

The response is of type object.