Update Environment
update_environmentUpdate a GTM container environment by specifying account, container, and environment IDs with new field values. Optionally include a fingerprint to avoid overwriting concurrent edits.
Instructions
Update a container environment.
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>",
"environment_id": "<environment_id>",
"environment": "<environment>"
},
"name": "update_environment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | Numeric Tag Manager account ID. | |
| environment | Yes | Environment resource with the fields to change. | |
| fingerprint | No | Fingerprint from a previous read. When given, the update fails if the environment changed in the meantime. | |
| container_id | Yes | Numeric container ID. | |
| environment_id | Yes | Numeric environment ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||