Skip to main content
PATCH
Update a tracking script

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. Provide at least one of active or domains; omitted fields are left unchanged.

active
boolean

Boolean to deactivate or reactivate the tracking script

Example:

"false"

domains
string[] | null

Replaces the domains whitelisted for this tracking script. Only traffic from these domains (and their subdomains) is accepted. An empty array or null removes the restriction.

Response

Tracking script updated successfully

success
boolean
Example:

true

data
object[]