Templates: create

Creates a GTM Custom Template. Try it now.

Request

HTTP request

POST https://www.googleapis.com/tagmanager/v2/+parent/templates

Parameters

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

Authorization

This request requires authorization with the following scope:

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

For more information, see the authentication and authorization page.

Request body

In the request body, supply a Templates resource.

Response

If successful, this method returns a Templates resource in the response body.

Try it!

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