Skip to main content
PATCH
Update Web Tracking Key
Rename a web tracking key, replace its allowed origins, or revoke it. Requires an API key with the integrations:manage scope.

Request

string
required
Web tracking key ID.
string
New label for the key.
array
Replacement allowlist. This replaces the whole list rather than appending to it, so include the origins you want to keep. Pass an empty array to make the key unrestricted.
boolean
Set false to revoke, true to re-enable a revoked key.

Behavior

Revoking takes effect within about a minute and does not rotate the key value, so you can still find and remove the matching snippet from your site. Use Delete Web Tracking Key once the snippet is gone. Fields you do not send are left unchanged. Send at least one of name, allowedOrigins, or isActive.

Responses