Version Headers: latest

Requires authorization

Gets the latest container version header Try it now.

Request

HTTP request

GET https://www.googleapis.com/tagmanager/v2/+parent/version_headers:latest

Parameters

Parameter name Value Description
Path parameters
parent string GTM Container's API relative path. Example: accounts/{account_id}/containers/{container_id}

Authorization

This request requires authorization with at least one of the following scopes (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/tagmanager.edit.containers
https://www.googleapis.com/auth/tagmanager.readonly

Request body

Do not supply a request body with this method.

Response

If successful, this method returns a response body with the following structure:

{
  "path": string,
  "accountId": string,
  "containerId": string,
  "containerVersionId": string,
  "name": string,
  "numMacros": string,
  "numRules": string,
  "numTags": string,
  "numTriggers": string,
  "deleted": boolean,
  "numVariables": string,
  "numZones": string
}
Property name Value Description Notes
path string GTM Container Versions's API relative path.
accountId string GTM Account ID.
containerId string GTM Container ID.
containerVersionId string The Container Version ID uniquely identifies the GTM Container Version.
name string Container version display name.
numMacros string Number of macros in the container version.
numRules string Number of rules in the container version.
numTags string Number of tags in the container version.
numTriggers string Number of triggers in the container version.
deleted boolean A value of true indicates this container version has been deleted.
numVariables string Number of variables in the container version.
numZones string Number of zones in the container version.

Try it!

Use the APIs Explorer below to call this method on live data and see the response.