templates_update
Update an existing GTM template by providing the full template resource as a JSON string. Requires confirmation and write mode enabled.
Instructions
[WRITE] Update an existing GTM template. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true. Pass the full resource as a JSON string in bodyJson.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | Yes | The GTM account ID. | |
| containerId | Yes | The GTM container ID. | |
| workspaceId | Yes | The GTM workspace ID. | |
| templateId | Yes | The templates ID to update. | |
| bodyJson | Yes | Full templates resource as a JSON string. | |
| fingerprint | No | Current fingerprint (for optimistic locking). | |
| confirm | Yes | Must be true to confirm this write operation. |