Update Zone
update_zoneUpdate a zone in a Google Tag Manager workspace by replacing it with the provided complete zone resource. Read the zone first to preserve omitted fields.
Instructions
Update a zone in a workspace.
The zone you send replaces the stored one, so read it with get_zone 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>",
"zone_id": "<zone_id>",
"zone": "<zone>"
},
"name": "update_zone"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zone | Yes | Complete Zone resource. | |
| zone_id | Yes | Numeric zone ID. | |
| account_id | Yes | Numeric Tag Manager account ID. | |
| fingerprint | No | Fingerprint from a previous read. When given, the update fails if the zone changed in the meantime. | |
| container_id | Yes | Numeric container ID. | |
| workspace_id | Yes | Numeric workspace ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||