Method: tags.create

Full name: accounts.containers.tags.create

Creates a GTM Tag.

HTTP request

POST https://tagmanager.googleapis.com/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags

Path parameters

Parameters
accountId

string

The GTM Account ID.

containerId

string

The GTM Container ID.

Request body

The request body contains an instance of Tag.

Response body

If successful, the response body contains a newly created instance of Tag.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview.