Method: containers.move_tag_id

Full name: accounts.containers.move_tag_id

Move Tag ID out of a Container.

HTTP request

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

Path parameters

Parameters
path

string

GTM Container's API relative path. It takes the form accounts/{account}/containers/{container}.

Query parameters

Parameters
tagId

string

Tag ID to be removed from the current Container.

tagName

string

The name for the newly created tag.

copyUsers

boolean

Whether or not to copy users from this tag to the new tag.

copySettings

boolean

Whether or not to copy tag settings from this tag to the new tag.

allowUserPermissionFeatureUpdate

boolean

Must be set to true to allow features.user_permissions to change from false to true. If this operation causes an update but this bit is false, the operation will fail.

copyTermsOfService

boolean

Must be set to true to accept all terms of service agreements copied from the current tag to the newly created tag. If this bit is false, the operation will fail.

Request body

The request body must be empty.

Response body

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

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview.