Creates a Container. Try it now.
Request
HTTP request
POST https://www.googleapis.com/tagmanager/v2/+parent/containers
Parameters
Parameter name | Value | Description |
---|---|---|
Path parameters | ||
parent |
string |
GTM Account's API relative path. Example: accounts/{account_id}. |
Authorization
This request requires authorization with the following scope:
Scope |
---|
https://www.googleapis.com/auth/tagmanager.edit.containers |
For more information, see the authentication and authorization page.
Request body
In the request body, supply a Containers resource with the following properties:
Property name | Value | Description | Notes |
---|---|---|---|
Required Properties | |||
name |
string |
Container display name. | writable |
usageContext[] |
list |
List of Usage Contexts for the Container. Valid values include: web, android, or ios . |
writable |
Optional Properties | |||
domainName[] |
list |
List of domain names associated with the Container. | writable |
notes |
string |
Container Notes. | writable |
taggingServerUrls[] |
list |
List of server-side container URLs for the Container. If multiple URLs are provided, all URL paths must match. | writable |
Response
If successful, this method returns a Containers resource in the response body.
Try it!
Use the APIs Explorer below to call this method on live data and see the response.