Environments: create

Creates a GTM Environment. Try it now.


HTTP request

POST https://www.googleapis.com/tagmanager/v2/+parent/environments


Parameter name Value Description
Path parameters
parent string GTM Container's API relative path. Example: accounts/{account_id}/containers/{container_id}


This request requires authorization with the following scope:


For more information, see the authentication and authorization page.

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 for the environment. writable
url string Default preview page url for the environment. writable


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.