update_tag
Merge changes into a Google Tag Manager tag configuration. Null values remove keys, lists replace entirely. Prevents concurrent edit conflicts with fingerprint validation.
Instructions
Updates a tag by merging changes into its current configuration.
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. firingTriggerId must be the complete new list). 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 tag.
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. tag_id: Numeric tag ID; find it via list_tags. changes: Partial tag body, e.g. {'paused': True} or {'firingTriggerId': ['5', '7']}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag_id | Yes | ||
| changes | Yes | ||
| account_id | Yes | ||
| container_id | Yes | ||
| workspace_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||