Update Client
update_clientUpdate a client in a Google Tag Manager workspace. To avoid clearing fields, read the client first, apply edits, and send the complete client resource back.
Instructions
Update a client in a workspace.
The client you send replaces the stored one, so read it with get_client 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>",
"client_id": "<client_id>",
"client": "<client>"
},
"name": "update_client"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| client | Yes | Complete Client resource. | |
| client_id | Yes | Numeric client ID. | |
| account_id | Yes | Numeric Tag Manager account ID. | |
| fingerprint | No | Fingerprint from a previous read. When given, the update fails if the client changed in the meantime. | |
| container_id | Yes | Numeric container ID. | |
| workspace_id | Yes | Numeric workspace ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||