Method: folders.move_entities_to_folder

Full name: accounts.containers.workspaces.folders.move_entities_to_folder

Moves entities to a GTM Folder. If {folderId} in the request path equals 0, this will instead move entities out of the folder they currently belong to.

HTTP request

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

Path parameters

Parameters
path

string

GTM Folder's API relative path. It takes the form accounts/{account}/containers/{container}/workspaces/{workspace}/folders/{folder}.

Query parameters

Parameters
tagId[]

string

The tags to be moved to the folder.

variableId[]

string

The variables to be moved to the folder.

triggerId[]

string

The triggers to be moved to the folder.

Request body

The request body contains an instance of Folder.

Response body

If successful, the response body is an empty JSON object.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview.