Update Transformation
update_transformationReplace an existing GTM transformation with an updated version. Read it first, apply edits, and send the complete resource to avoid clearing omitted fields.
Instructions
Update a transformation in a workspace.
The transformation you send replaces the stored one, so read it with get_transformation 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>",
"transformation_id": "<transformation_id>",
"transformation": "<transformation>"
},
"name": "update_transformation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | Numeric Tag Manager account ID. | |
| fingerprint | No | Fingerprint from a previous read. When given, the update fails if the transformation changed in the meantime. | |
| container_id | Yes | Numeric container ID. | |
| workspace_id | Yes | Numeric workspace ID. | |
| transformation | Yes | Complete Transformation resource. | |
| transformation_id | Yes | Numeric transformation ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||