gtm_folder
Manage Google Tag Manager folders with operations like create, get, list, update, remove, revert, entities, and move entities to folders. Supports pagination for listing.
Instructions
Performs all folder operations: create, get, list, update, remove, revert, entities, moveEntitiesToFolder. The 'list' action returns up to 50 items per page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number for pagination (starts from 1). Each page contains up to itemsPerPage items. | |
| tagId | No | The tags to be moved to the folder. Required for 'moveEntitiesToFolder' action. | |
| action | Yes | The folder operation to perform. Must be one of: 'create', 'get', 'list', 'update', 'remove', 'revert', 'entities', 'moveEntitiesToFolder'. | |
| folderId | No | The unique ID of the GTM Folder. Required for 'get', 'update', 'remove', 'revert', 'entities', and 'moveEntitiesToFolder' actions. | |
| accountId | Yes | The unique ID of the GTM Account containing the folder. | |
| triggerId | No | The triggers to be moved to the folder. Required for 'moveEntitiesToFolder' action. | |
| variableId | No | The variables to be moved to the folder. Required for 'moveEntitiesToFolder' action. | |
| containerId | Yes | The unique ID of the GTM Container containing the folder. | |
| fingerprint | No | The fingerprint for optimistic concurrency control. Required for 'update' and 'revert' actions. | |
| workspaceId | Yes | The unique ID of the GTM Workspace containing the folder. | |
| itemsPerPage | No | Number of items to return per page (1-50). Default: 50. Use lower values if experiencing response issues. | |
| createOrUpdateConfig | No | Configuration for 'create' and 'update' actions. All fields correspond to the GTM Folder resource, except IDs. |