gtm_workspace
Manage Google Tag Manager workspaces: create, update, list, sync, preview, and resolve conflicts across tags, triggers, and variables.
Instructions
Performs various workspace operations including create, get, list, update, remove, createVersion, getStatus, sync, quickPreview, and resolveConflict actions. 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. | |
| action | Yes | The workspace operation to perform. Must be one of: 'create', 'get', 'list', 'update', 'remove', 'createVersion', 'getStatus', 'sync', 'quickPreview', 'resolveConflict'. | |
| entity | No | The resolved entity for 'resolveConflict' action. | |
| accountId | Yes | The unique ID of the GTM Account containing the workspace. | |
| containerId | Yes | The unique ID of the GTM Container containing the workspace. | |
| fingerprint | No | Fingerprint for optimistic concurrency control. Required for 'update' and 'resolveConflict' actions. | |
| workspaceId | No | The unique ID of the GTM Workspace. Required for all actions except 'create' and 'list'. | |
| changeStatus | No | The status of the change for the entity in the workspace for 'resolveConflict' action. Possible values: 'added', 'modified', 'deleted', 'unmodified'. | |
| 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 workspace resource, except IDs. |