> ## 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 Client

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

Replaces a client in a Google Tag Manager workspace with a full resource payload. Clients receive and route incoming requests in a server-side Google Tag Manager container. Version and publish to take changes live.

| | |
| - | - |
| **App** | Google Tag Manager |
| **Operation ID** | `gtm_update_client` |
| **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. |
| `client` | DynamicAccount | Yes | - | Select the client to update, or provide its ID. |
| `client_payload` | object or string | Yes | - | Full replacement Client resource; the update replaces the client entirely, so include every field it should keep. Workflow: gtm\_get\_client -> edit the payload -> gtm\_update\_client. Full Client resource (object or JSON string) matching the Google Tag Manager API v2 Client spec (server containers). Must include name and type (e.g. gaaw\_client for GA4). Example: \{"name": "GA4 Client", "type": "gaaw\_client", "parameter": \[\{"type": "template", "key": "activateDefaultPaths", "value": "true"}]} |

## Output

**Type**: `Dict`

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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.