update_variable
Update a Google Tag Manager variable by merging changes into its current configuration, preserving concurrent edits with fingerprint checks.
Instructions
Updates a variable by merging changes into its current config.
The merge is shallow: each top-level key in changes replaces the current value, a null value removes the key, and lists are replaced whole (e.g. the parameter list must be passed complete). The current config is re-read in the same call and its fingerprint sent along, so concurrent edits fail cleanly instead of being clobbered. Changes stay in the workspace draft until a version is published. Returns the updated variable.
Args: account_id: Numeric account ID or full resource path. container_id: Numeric container ID or full resource path. workspace_id: Numeric workspace ID; find it via list_workspaces. variable_id: Numeric variable ID; find it via list_variables. changes: Partial variable body, e.g. {'name': 'New name'}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changes | Yes | ||
| account_id | Yes | ||
| variable_id | Yes | ||
| container_id | Yes | ||
| workspace_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||