Replaces a variable in a Google Tag Manager workspace with a full Variable resource payload
Replaces a variable in a Google Tag Manager workspace with a full Variable resource payload. Workflow: gtm_get_variable, edit the payload, gtm_update_variable, then version and publish.
Select the variable to update, or provide its variable ID.
variable_payload
object or string
Yes
-
Full replacement Variable resource (object or JSON string) matching the Google Tag Manager API v2 Variable spec; the update replaces the variable entirely, so include every field the variable should keep. Workflow: gtm_get_variable -> edit the payload -> gtm_update_variable. Read-only fields are stripped automatically.