Update Tag
update_tagUpdate a tag in a Google Tag Manager workspace by replacing the stored tag with the one you send. Read the tag first with get_tag, apply edits, and send the full resource to avoid clearing omitted fields.
Instructions
Update a tag in a workspace.
The tag you send replaces the stored one, so read it with get_tag first and send the whole thing back with your edits applied. Omitted fields are cleared, not preserved.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"account_id": "<account_id>",
"container_id": "<container_id>",
"workspace_id": "<workspace_id>",
"tag_id": "<tag_id>",
"tag": "<tag>"
},
"name": "update_tag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | Yes | Complete Tag resource. | |
| tag_id | Yes | Numeric tag ID. | |
| account_id | Yes | Numeric Tag Manager account ID. | |
| fingerprint | No | Fingerprint from a previous read. When given, the update fails if the tag changed in the meantime. | |
| container_id | Yes | Numeric container ID. | |
| workspace_id | Yes | Numeric workspace ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||