Stay organized with collections
Save and categorize content based on your preferences.
Moves entities to a GTM Folder. If {folder_id} in the request path equals
0, this will instead move entities out of the folder they currently belong
to.
Try it now.
Request
HTTP request
POST https://www.googleapis.com/tagmanager/v2/+path:move_entities_to_folder
Parameters
Parameter name
Value
Description
Path parameters
path
string
GTM Folder's API relative path.
Example:
accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/folders/{folder_id}
Optional query parameters
tagId
string
The tags to be moved to the folder.
triggerId
string
The triggers to be moved to the folder.
variableId
string
The variables to be moved to the folder.
Authorization
This request requires authorization with the following scope:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["Moves entities like tags, triggers, and variables to a specified Google Tag Manager (GTM) folder."],["If the folder ID is 0, entities are moved out of their current folder."],["Requires authorization with the `https://www.googleapis.com/auth/tagmanager.edit.containers` scope."],["Uses a POST request to the `https://www.googleapis.com/tagmanager/v2/+path:move_entities_to_folder` endpoint."],["The request body should contain a Folders resource, and successful execution returns an empty response body."]]],[]]