Full name: accounts.containers.versions.create
Creates a Container Version.
HTTP request
POST https://tagmanager.googleapis.com/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions
Path parameters
| Parameters | |
|---|---|
accountId |
The GTM Account ID. |
containerId |
The GTM Container ID. |
Request body
The request body contains an instance of VersionOptions.
Response body
Create container versions response.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"containerVersion": {
object ( |
| Fields | |
|---|---|
containerVersion |
The container version created. |
compilerError |
Compiler errors or not. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/tagmanager.edit.containerversions
For more information, see the OAuth 2.0 Overview.
VersionOptions
Options for new container versions.
| JSON representation |
|---|
{ "quickPreview": boolean, "name": string, "notes": string } |
| Fields | |
|---|---|
quickPreview |
The creation of this version may be for quick preview and shouldn't be saved. |
name |
The name of the container version to be created. |
notes |
The notes of the container version to be created. |