Method: templates.update

Full name: accounts.containers.workspaces.templates.update

Updates a GTM Template.

HTTP request

PUT https://tagmanager.googleapis.com/tagmanager/v2/{path}

Path parameters

Parameters
path

string

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

Query parameters

Parameters
fingerprint

string

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

Request body

The request body contains an instance of CustomTemplate.

Response body

If successful, the response body contains an instance of CustomTemplate.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview.