> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Zone

> Replaces a zone in a Google Tag Manager workspace with a full resource payload

Replaces a zone in a Google Tag Manager workspace with a full resource payload. Zones control which tags third parties may add to a Google Tag Manager container (GTM 360). Version and publish to take changes live.

|                       |                       |
| --------------------- | --------------------- |
| **App**               | Google Tag Manager    |
| **Operation ID**      | `gtm_update_zone`     |
| **Type**              | Action                |
| **Connection**        | `gtm` (required)      |
| **Credits per run**   | 1                     |
| **Agent / MCP tool**  | Yes                   |
| **Requires approval** | Yes (write operation) |

## Inputs

| Field          | Type             | Required | Default | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| -------------- | ---------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `account`      | DynamicAccount   | Yes      | -       | Select the Google Tag Manager account.                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `container`    | DynamicAccount   | Yes      | -       | Select the container.                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `workspace`    | DynamicAccount   | Yes      | -       | Select the workspace.                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `zone`         | DynamicAccount   | Yes      | -       | Select the zone to update, or provide its ID.                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `zone_payload` | object or string | Yes      | -       | Full replacement Zone resource; the update replaces the zone entirely, so include every field it should keep. Workflow: gtm\_get\_zone -> edit the payload -> gtm\_update\_zone. Full Zone resource (object or JSON string) matching the Google Tag Manager API v2 Zone spec (GTM 360). Must include name; linked containers go in childContainer and restrictions in boundary and typeRestriction. Example: \{"name": "Marketing Zone", "childContainer": \[\{"publicId": "GTM-XXXXXX"}]} |

## Output

**Type**: `Dict`

Returns the updated zone as provided by the Tag Manager API.
