Method: built_in_variables.revert

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

Reverts changes to a GTM Built-In Variables in a GTM Workspace.

HTTP request

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

Path parameters

Parameters
path

string

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

Query parameters

Parameters
type

enum (BuiltInVariableType)

The type of built-in variable to revert.

Request body

The request body must be empty.

Response body

The result of reverting a built-in variable in a workspace.

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

JSON representation
{
  "enabled": boolean
}
Fields
enabled

boolean

Whether the built-in variable is enabled after reversion.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview.