Method: built_in_variables.create

Full name: accounts.containers.workspaces.built_in_variables.create

Creates one or more GTM Built-In Variables.

HTTP request

POST https://tagmanager.googleapis.com/tagmanager/v2/{parent}/built_in_variables

Path parameters

Parameters
parent

string

GTM Workspace's API relative path. It takes the form accounts/{account}/containers/{container}/workspaces/{workspace}.

Query parameters

Parameters
type[]

enum (BuiltInVariableType)

The types of built-in variables to enable.

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

JSON representation
{
  "builtInVariable": [
    {
      object (BuiltInVariable)
    }
  ]
}
Fields
builtInVariable[]

object (BuiltInVariable)

List of created built-in variables.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/tagmanager.edit.containers

For more information, see the OAuth 2.0 Overview.