Method: variables.revert

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

Reverts changes to a GTM Variable in a GTM Workspace.

HTTP request

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

Path parameters

Parameters
path

string

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

Query parameters

Parameters
fingerprint

string

When provided, this fingerprint must match the fingerprint of the variable in storage.

Request body

The request body must be empty.

Response body

The result of reverting a variable in a workspace.

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

JSON representation
{
  "variable": {
    object (Variable)
  }
}
Fields
variable

object (Variable)

Variable as it appears in the latest container version since the last workspace synchronization operation. If no variable is present, that means the variable was deleted in the latest container version.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview.