Requires authorization
Updates a GTM Environment. Try it now.
Request
HTTP request
PUT https://www.googleapis.com/tagmanager/v1/accounts/accountId/containers/containerId/environments/environmentId
Parameters
Parameter name | Value | Description |
---|---|---|
Path parameters | ||
accountId |
string |
The GTM Account ID. |
containerId |
string |
The GTM Container ID. |
environmentId |
string |
The GTM Environment ID. |
Optional query parameters | ||
fingerprint |
string |
When provided, this fingerprint must match the fingerprint of the environment in storage. |
Authorization
This request requires authorization with the following scope (read more about authentication and authorization).
Scope |
---|
https://www.googleapis.com/auth/tagmanager.edit.containers |
Request body
In the request body, supply an Environments resource with the following properties:
Property name | Value | Description | Notes |
---|---|---|---|
Required Properties | |||
name |
string |
The environment display name. Can be set or changed only on USER type environments. | writable |
Optional Properties | |||
description |
string |
The environment description. Can be set or changed only on USER type environments. | writable |
enableDebug |
boolean |
Whether or not to enable debug by default on for the environment. | writable |
url |
string |
Default preview page url for the environment. | writable |
Response
If successful, this method returns an Environments resource in the response body.
Try it!
Use the APIs Explorer below to call this method on live data and see the response.