---
canonical_url: "https://docs.composio.dev/toolkits/google_tag_manager"
markdown_url: "https://docs.composio.dev/toolkits/google_tag_manager.md"
product: "platform"
version: null
last_updated: null
---

# Google Tag Manager

Google Tag Manager provides programmatic administration of accounts, containers, workspaces, tags, triggers, variables, versions, publishing, and user permissions.

- **Category:** marketing
- **Auth:** OAUTH2
- **Composio-managed OAuth available?** No
- **Tools:** 60
- **Triggers:** 0
- **Slug:** `GOOGLE_TAG_MANAGER`
- **Version:** 00000000_00

## Tools

### Bulk Update Workspace

**Slug:** `GOOGLE_TAG_MANAGER_BULK_UPDATE_WORKSPACE`

Apply multiple typed entity additions, updates, or deletions to a Google Tag Manager workspace in one request without publishing the workspace. Changes can permanently delete workspace entities and cannot be safely rolled back as a single operation.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `changes` | array | Yes | Entity additions, updates, or deletions. Added entity IDs must be unique values starting with new_ followed by decimal digits; references may use those IDs. |
| `workspace_path` | string | Yes | GTM API-relative workspace path in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Combine Containers

**Slug:** `GOOGLE_TAG_MANAGER_COMBINE_CONTAINERS`

Warning: This method is no longer supported and will soon be removed. Irreversibly merge another container's configuration into an existing target Google Tag Manager container. This broad-impact operation mutates the target and has no safe automatic rollback; it may also enable the target's user-permissions feature when explicitly allowed. Verify both containers and the setting source, and use disposable or backed-up resources.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `setting_source` | string ("settingSourceUnspecified" | "current" | "other") | No | Which container supplies the resulting configuration settings: current keeps settings from the target, other uses settings from the source, and settingSourceUnspecified leaves the choice unspecified. |
| `source_container_id` | string | Yes | ID of the other container whose configuration will be merged into the target container. Verify the source and target before calling. |
| `target_container_path` | string | Yes | API-relative path of the existing target container that will be mutated, in the form accounts/{account_id}/containers/{container_id}. The combine operation is broad-impact and not safely reversible. |
| `allow_user_permission_feature_update` | boolean | No | Set true only to permit this combine to enable the target container's user-permissions feature. The provider rejects a combine that requires that feature change when this is false. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Create Container

**Slug:** `GOOGLE_TAG_MANAGER_CREATE_CONTAINER`

Create a Google Tag Manager container under an account.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `container` | object | Yes | Writable container configuration. Omit fields that should use provider defaults. |
| `account_path` | string | Yes | Parent account path in the form accounts/{account_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Create Container Version

**Slug:** `GOOGLE_TAG_MANAGER_CREATE_CONTAINER_VERSION`

Create a Google Tag Manager container version from a workspace and make it the synchronization base without publishing it live. On successful version creation, GTM deletes the source workspace and may return a replacement workspace as new_workspace_path. Do not call this on a workspace that must remain at its current path. The exact JSON body is the root version-options object with required name and optional notes fields; it is not wrapped in another property. Compiler errors, synchronization errors, and merge conflicts are surfaced as failed actions even if the API returns HTTP 200.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Display name sent as the name field in the root version-options request body. |
| `notes` | string | No | Optional notes sent as the notes field in the root version-options request body; omitted when not supplied. |
| `workspace_path` | string | Yes | GTM API-relative path of the workspace to snapshot. After successful version creation, GTM may return a replacement workspace path when it creates one. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Create Environment

**Slug:** `GOOGLE_TAG_MANAGER_CREATE_ENVIRONMENT`

Create a Google Tag Manager user environment, optionally linked to either a workspace or a container version.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `environment` | object | Yes | Provider-shaped writable Environment fields. Omit fields that should use Google Tag Manager defaults. |
| `container_path` | string | Yes | Parent GTM container API-relative path in the form accounts/{account_id}/containers/{container_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Create User Permission

**Slug:** `GOOGLE_TAG_MANAGER_CREATE_USER_PERMISSION`

Grant a user broad Google Tag Manager account and container access. This is a sensitive access-control operation that can assign account admin and container edit, approve, or publish privileges; use it only for an explicitly authorized email address and reviewed container IDs.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `permission` | object | Yes | User identity plus the exact account and optional container access to grant. |
| `account_path` | string | Yes | Account API-relative path receiving the user grant, such as accounts/123456. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Create Workspace

**Slug:** `GOOGLE_TAG_MANAGER_CREATE_WORKSPACE`

Create an isolated Google Tag Manager workspace in a container for staging configuration changes.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `workspace` | object | Yes | Writable workspace fields. Read-only IDs, paths, and fingerprint are omitted. |
| `container_path` | string | Yes | Parent GTM container API-relative path in the form accounts/{account_id}/containers/{container_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Create Workspace Entity

**Slug:** `GOOGLE_TAG_MANAGER_CREATE_WORKSPACE_ENTITY`

Create one strictly typed client, folder, Google tag configuration, tag, custom template, transformation, trigger, variable, or zone in a Google Tag Manager workspace without publishing it.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `entity` | object | Yes | Exactly one provider-shaped create payload, under the key matching entity_type. Read-only IDs, paths, fingerprints, and UI URLs are rejected. |
| `entity_type` | string ("client" | "folder" | "google_tag_config" | "tag" | "template" | "transformation" | "trigger" | "variable" | "zone") | Yes | Entity family to create; this must match the one payload in entity. |
| `workspace_path` | string | Yes | GTM API-relative workspace path in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Container

**Slug:** `GOOGLE_TAG_MANAGER_DELETE_CONTAINER`

Permanently delete a Google Tag Manager container and all of its configuration. This operation has no API confirmation step or undo.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `container_path` | string | Yes | GTM API-relative path of the container to permanently delete, in the form accounts/{account_id}/containers/{container_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Container Version

**Slug:** `GOOGLE_TAG_MANAGER_DELETE_CONTAINER_VERSION`

Archive/delete a stored Google Tag Manager container version. The operation has no confirmation step and makes the version unavailable until a separate undelete action restores it.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `version_path` | string | Yes | GTM API-relative path of the stored container version to archive/delete, in the form accounts/{account_id}/containers/{container_id}/versions/{version_id}. The version remains recoverable only through the separate undelete action. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Environment

**Slug:** `GOOGLE_TAG_MANAGER_DELETE_ENVIRONMENT`

Permanently delete a user-created Google Tag Manager USER environment. System LIVE, LATEST, and WORKSPACE environments cannot be deleted, and this operation has no confirmation step or undo.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `environment_path` | string | Yes | GTM API-relative path of the user-created USER environment to permanently delete, in the form accounts/{account_id}/containers/{container_id}/environments/{environment_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete User Permission

**Slug:** `GOOGLE_TAG_MANAGER_DELETE_USER_PERMISSION`

Remove the user identified by a Google Tag Manager user-permission path from the account, immediately revoking that user's access to the account and all of its containers. This destructive access revocation has no confirmation step.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `permission_path` | string | Yes | GTM API-relative path of the user permission to delete. Deleting it immediately revokes that user's access to the account and every container in the account. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Workspace

**Slug:** `GOOGLE_TAG_MANAGER_DELETE_WORKSPACE`

Permanently delete a Google Tag Manager workspace and all of its unpublished changes. This destructive operation has no API confirmation step or undo.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `workspace_path` | string | Yes | GTM API-relative path of the workspace to permanently delete, in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Workspace Entity

**Slug:** `GOOGLE_TAG_MANAGER_DELETE_WORKSPACE_ENTITY`

Delete one client, folder, Google tag configuration, tag, custom template, transformation, trigger, variable, or zone from a Google Tag Manager workspace. This destructive staged change can affect a later published container version; only delete entities created or explicitly selected by the caller.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `entity_path` | string | Yes | Full GTM API-relative path of the workspace entity to delete, such as accounts/123/containers/456/workspaces/789/tags/1011. The deletion is staged in the workspace and can affect a later published version. |
| `entity_type` | string ("client" | "folder" | "google_tag_config" | "tag" | "template" | "transformation" | "trigger" | "variable" | "zone") | Yes | Entity family to delete. It must match the family segment in entity_path. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Disable Built-In Variables

**Slug:** `GOOGLE_TAG_MANAGER_DISABLE_BUILT_IN_VARIABLES`

Disable one or more built-in variable types in a Google Tag Manager workspace. This destructive operation removes those variables from the workspace without a confirmation step.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `variable_types` | array | Yes | One or more provider-enumerated built-in variable types to disable. Each value is sent as a repeated type query parameter. |
| `workspace_path` | string | Yes | GTM API-relative workspace path in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Enable Built-In Variables

**Slug:** `GOOGLE_TAG_MANAGER_ENABLE_BUILT_IN_VARIABLES`

Enable one or more provider-defined built-in variable types in a Google Tag Manager workspace.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `variable_types` | array | Yes | One or more provider-defined built-in variable types to enable. Each value is sent as a repeated type query parameter. |
| `workspace_path` | string | Yes | GTM API-relative workspace path in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Account

**Slug:** `GOOGLE_TAG_MANAGER_GET_ACCOUNT`

Get one GTM account by its API-relative path.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `account_path` | string | Yes | Account API-relative path in the format accounts/{account_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Container

**Slug:** `GOOGLE_TAG_MANAGER_GET_CONTAINER`

Get one GTM container by path, including its configuration metadata, feature flags, tag IDs, and current fingerprint.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `container_path` | string | Yes | GTM API-relative container path in the form accounts/{account_id}/containers/{container_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Container Snippet

**Slug:** `GOOGLE_TAG_MANAGER_GET_CONTAINER_SNIPPET`

Return the installation snippet for a GTM container without changing it.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `container_path` | string | Yes | GTM API-relative path of the container whose installation snippet to retrieve, in the form accounts/{account_id}/containers/{container_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Container Version

**Slug:** `GOOGLE_TAG_MANAGER_GET_CONTAINER_VERSION`

Get a complete GTM container version snapshot by path, including every nested entity family returned by Google Tag Manager.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `version_path` | string | Yes | GTM API-relative container-version path in the form accounts/{account_id}/containers/{container_id}/versions/{version_id}. |
| `container_version_id` | string | No | Optional GTM container-version selector. Use 'published' only when intentionally retrieving the currently published version through this endpoint. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Destination

**Slug:** `GOOGLE_TAG_MANAGER_GET_DESTINATION`

Warning: This method is no longer supported and will soon be removed. Get one linked Google tag destination by its GTM API-relative path.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `destination_path` | string | Yes | GTM API-relative destination path returned by list_destinations, in the form accounts/{account_id}/containers/{container_id}/destinations/{destination_link_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Environment

**Slug:** `GOOGLE_TAG_MANAGER_GET_ENVIRONMENT`

Get one GTM environment, including its authorization metadata, linked container version or workspace, preview settings, and fingerprint.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `environment_path` | string | Yes | GTM API-relative environment path in the form accounts/{account_id}/containers/{container_id}/environments/{environment_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Latest Version Header

**Slug:** `GOOGLE_TAG_MANAGER_GET_LATEST_VERSION_HEADER`

Get the latest GTM container-version header for synchronization context, including its version ID, deletion state, and entity counts.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `container_path` | string | Yes | GTM API-relative parent container path in the form accounts/{account_id}/containers/{container_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Live Container Version

**Slug:** `GOOGLE_TAG_MANAGER_GET_LIVE_CONTAINER_VERSION`

Get the currently published live GTM container version, including every nested entity family returned by Google Tag Manager.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `container_path` | string | Yes | GTM API-relative container path in the form accounts/{account_id}/containers/{container_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get User Permission

**Slug:** `GOOGLE_TAG_MANAGER_GET_USER_PERMISSION`

Get one user's GTM account and container access by permission path.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `permission_path` | string | Yes | GTM API-relative user-permission path returned by list_user_permissions, in the form accounts/{account_id}/user_permissions/{user_permission_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Workspace

**Slug:** `GOOGLE_TAG_MANAGER_GET_WORKSPACE`

Get one GTM workspace by path, including its current fingerprint.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `workspace_path` | string | Yes | GTM API-relative workspace path in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Workspace Entity

**Slug:** `GOOGLE_TAG_MANAGER_GET_WORKSPACE_ENTITY`

Get one selected client, folder, Google tag config, tag, template, transformation, trigger, variable, or zone by its GTM API-relative path.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `entity_path` | string | Yes | Full GTM API-relative entity path returned by List Workspace Entities, such as accounts/123/containers/456/workspaces/789/tags/1011. |
| `entity_type` | string ("client" | "folder" | "google_tag_config" | "tag" | "template" | "transformation" | "trigger" | "variable" | "zone") | Yes | Expected GTM entity family. This selects a fixed provider route and response schema. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Workspace Status

**Slug:** `GOOGLE_TAG_MANAGER_GET_WORKSPACE_STATUS`

Return modified entities and merge conflicts in a GTM workspace before synchronization or version creation.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `workspace_path` | string | Yes | GTM API-relative workspace path in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Import Template From Gallery

**Slug:** `GOOGLE_TAG_MANAGER_IMPORT_TEMPLATE_FROM_GALLERY`

Import an exact Community Template Gallery repository revision into a Google Tag Manager workspace after explicitly acknowledging its requested permissions. Omit gallery_sha only when the provider's latest revision is intended.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `gallery_sha` | string | No | Exact repository commit SHA to import. Omit this field to let Google Tag Manager select the latest SHA. |
| `gallery_owner` | string | Yes | Exact owner of the Community Template Gallery repository. |
| `workspace_path` | string | Yes | GTM API-relative path of the workspace receiving the template, in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}. |
| `gallery_repository` | string | Yes | Exact name of the Community Template Gallery repository. |
| `acknowledge_permissions` | boolean | Yes | Must be true to explicitly accept the template's requested permissions; Google Tag Manager rejects the import otherwise. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Link Destination

**Slug:** `GOOGLE_TAG_MANAGER_LINK_DESTINATION`

Move a Google tag destination from its currently linked container to a target GTM container. This broad-impact, irreversible relink causes all future events from the target source container to be sent to the destination, stops the previous container from being its source, and may enable user-permission support when explicitly allowed. Verify both the destination and target container before calling. Google has deprecated this provider method.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `container_path` | string | Yes | API-relative path of the target container that will become the source container, in the form accounts/{account_id}/containers/{container_id}. After linking, all future events from this container are sent to the destination. |
| `destination_id` | string | Yes | ID of the destination to move and link. Linking removes the destination from its currently linked container and sends it all future events from the target source container. |
| `allow_user_permission_feature_update` | boolean | No | Set true only to permit GTM to enable the target container's user-permissions feature when required. The link fails instead of changing that feature when this is false. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Accounts

**Slug:** `GOOGLE_TAG_MANAGER_LIST_ACCOUNTS`

List GTM accounts visible to the connected user, one page at a time.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `next_cursor` | string | No | Continuation cursor from a previous response. Omit for the first page and pass it back unchanged to fetch the next page. |
| `include_google_tags` | boolean | No | Set true to also retrieve accounts associated with Google tags. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Built-In Variables

**Slug:** `GOOGLE_TAG_MANAGER_LIST_BUILT_IN_VARIABLES`

List enabled built-in variables in a workspace one page at a time.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `next_cursor` | string | No | Continuation token returned by a previous call; omit for the first page. |
| `workspace_path` | string | Yes | GTM API-relative workspace path in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Containers

**Slug:** `GOOGLE_TAG_MANAGER_LIST_CONTAINERS`

List GTM containers under an account with paths, public IDs, fingerprints, and capability flags, one page at a time.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `next_cursor` | string | No | Continuation token returned by a previous call; omit for the first page. |
| `account_path` | string | Yes | Parent GTM account API-relative path, such as accounts/123456789. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Container Version Headers

**Slug:** `GOOGLE_TAG_MANAGER_LIST_CONTAINER_VERSION_HEADERS`

List lightweight GTM container-version headers one page at a time, optionally including deleted versions.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `next_cursor` | string | No | Continuation token returned by a previous call; omit for the first page. |
| `container_path` | string | Yes | Parent GTM API-relative container path in the form accounts/{account_id}/containers/{container_id}. |
| `include_deleted` | boolean | No | Include archived or deleted container versions. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Destinations

**Slug:** `GOOGLE_TAG_MANAGER_LIST_DESTINATIONS`

List all destinations linked to a GTM container. The provider exposes no continuation input, so this returns one provider response.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `container_path` | string | Yes | Parent GTM container API-relative path in the form accounts/{account_id}/containers/{container_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Environments

**Slug:** `GOOGLE_TAG_MANAGER_LIST_ENVIRONMENTS`

List GTM environments in a container one page at a time.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `next_cursor` | string | No | Continuation token returned by a previous call; omit for the first page. |
| `container_path` | string | Yes | Parent GTM API-relative container path in the form accounts/{account_id}/containers/{container_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Folder Entities

**Slug:** `GOOGLE_TAG_MANAGER_LIST_FOLDER_ENTITIES`

List the tags, triggers, and variables contained in one Google Tag Manager folder, one page at a time.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `folder_path` | string | Yes | GTM API-relative folder path in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/folders/{folder_id}. |
| `next_cursor` | string | No | Continuation token returned by a previous call for the same folder; omit for the first page. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List User Permissions

**Slug:** `GOOGLE_TAG_MANAGER_LIST_USER_PERMISSIONS`

List users with access to a GTM account and their account- and container-level permissions one page at a time. Results include sensitive user email addresses.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `next_cursor` | string | No | Continuation token returned by a previous call; omit for the first page. |
| `account_path` | string | Yes | Parent GTM API-relative account path in the form accounts/{account_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Workspaces

**Slug:** `GOOGLE_TAG_MANAGER_LIST_WORKSPACES`

List GTM workspaces in a container with paths and fingerprints, one page at a time.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `next_cursor` | string | No | Continuation token returned by a previous call; omit for the first page. |
| `container_path` | string | Yes | Parent GTM API-relative container path in the form accounts/{account_id}/containers/{container_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Workspace Entities

**Slug:** `GOOGLE_TAG_MANAGER_LIST_WORKSPACE_ENTITIES`

List one selected GTM workspace entity family: clients, folders, Google tag configs, tags, templates, transformations, triggers, variables, or zones.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `entity_type` | string ("client" | "folder" | "google_tag_config" | "tag" | "template" | "transformation" | "trigger" | "variable" | "zone") | Yes | Entity family to list. Supported values are client, folder, google_tag_config, tag, template, transformation, trigger, variable, and zone. |
| `next_cursor` | string | No | Continuation token returned by a previous call for the same workspace and entity type; omit for the first page. |
| `workspace_path` | string | Yes | GTM API-relative workspace path in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Look Up Container

**Slug:** `GOOGLE_TAG_MANAGER_LOOKUP_CONTAINER`

Find one Google Tag Manager container by exactly one tag ID or destination ID.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `tag_id` | string | No | Tag ID to resolve; provide exactly one of tag_id or destination_id. |
| `destination_id` | string | No | Destination ID to resolve; provide exactly one of destination_id or tag_id. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Move Container Tag ID

**Slug:** `GOOGLE_TAG_MANAGER_MOVE_CONTAINER_TAG_ID`

Move a tag ID out of a GTM container into a newly created Google tag. This deprecated, irreversible container-level operation removes the ID from the source container across its workspaces and associated configuration; it is not scoped to one workspace. It can also copy tag settings, users, and accepted terms, and may enable user-permission support.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `tag_id` | string | Yes | Tag ID to remove from the current container and move to the newly created Google tag. |
| `tag_name` | string | Yes | Name for the newly created Google tag that receives the tag ID. |
| `copy_users` | boolean | No | Whether to copy the current Google tag's users to the new tag. |
| `copy_settings` | boolean | No | Whether to copy the current Google tag's settings to the new tag. |
| `container_path` | string | Yes | Current GTM container path in the form accounts/{account_id}/containers/{container_id}. The tag ID is removed from this container at container scope, not from only one workspace. |
| `copy_terms_of_service` | boolean | No | Whether to accept all terms-of-service agreements copied from the current tag. The provider can reject the operation unless this is true. |
| `allow_user_permission_feature_update` | boolean | No | Whether GTM may enable the container's user-permissions feature when the move requires it. The provider rejects such an update when false. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Move Entities To Folder

**Slug:** `GOOGLE_TAG_MANAGER_MOVE_ENTITIES_TO_FOLDER`

Move selected tags, triggers, and variables into a Google Tag Manager folder, or move them out of folders by targeting folder ID 0.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `folder` | object | Yes | Provider-shaped destination Folder body. Identity fields, when supplied, must identify the same folder as folder_path. |
| `tag_ids` | array | No | Tag IDs to move, each sent as a repeated tagId query parameter. |
| `folder_path` | string | Yes | Destination GTM folder API-relative path. Use folder ID 0 to move the selected entities out of their current folders. |
| `trigger_ids` | array | No | Trigger IDs to move, each sent as a repeated triggerId query parameter. |
| `variable_ids` | array | No | Variable IDs to move, each sent as a repeated variableId query parameter. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Publish Container Version

**Slug:** `GOOGLE_TAG_MANAGER_PUBLISH_CONTAINER_VERSION`

Publish a specific Google Tag Manager container version to live traffic immediately. This is not a preview: it changes production tagging and has irreversible live impact for traffic processed before any later rollback. Verify the exact version and its fingerprint before publishing. A Google compiler error is surfaced as a failed action even when the API returns HTTP 200.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `fingerprint` | string | No | Latest stored version fingerprint for optimistic concurrency. When set, publishing fails if the version changed since this fingerprint was read. |
| `version_path` | string | Yes | GTM API-relative path of the specific container version to publish to live traffic, in the form accounts/{account_id}/containers/{container_id}/versions/{version_id}. Publishing has irreversible live impact; verify the account, container, and version before calling. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Quick Preview Workspace

**Slug:** `GOOGLE_TAG_MANAGER_QUICK_PREVIEW_WORKSPACE`

Create a temporary Google Tag Manager container version from all entities in a workspace for preview without publishing it to live traffic. Compiler errors, synchronization errors, and merge conflicts are returned as failed actions rather than successful previews.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `workspace_path` | string | Yes | GTM API-relative path of the workspace to compile into a temporary preview version, in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Reauthorize Environment

**Slug:** `GOOGLE_TAG_MANAGER_REAUTHORIZE_ENVIRONMENT`

Reauthorize a Google Tag Manager environment and rotate its authorization metadata for preview or debug use. This is a broad-impact, irreversible operation: the existing authorization code can become invalid immediately, breaking clients that still use it.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `environment` | object | Yes | Provider-shaped current Environment state to submit. Supply only fields that should be sent; omitted and null fields are not included in the body. |
| `environment_path` | string | Yes | GTM API-relative environment path in the form accounts/{account_id}/containers/{container_id}/environments/{environment_id}. Reauthorizing it can immediately invalidate its existing authorization code. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Resolve Workspace Conflict

**Slug:** `GOOGLE_TAG_MANAGER_RESOLVE_WORKSPACE_CONFLICT`

Resolve one Google Tag Manager workspace merge conflict by replacing the conflicted entity with exactly one complete, typed Entity resolution. Use the entityInWorkspace fingerprint from the conflict to prevent a concurrent overwrite.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `fingerprint` | string | No | Fingerprint of entityInWorkspace from the merge conflict. It is sent only as a query parameter for optimistic concurrency. |
| `workspace_path` | string | Yes | API-relative path of the workspace containing the conflict, in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}. |
| `resolved_entity` | object | Yes | Complete provider-shaped Entity resolution. Set exactly one of builtInVariable, client, customTemplate, folder, gtagConfig, tag, transformation, trigger, variable, or zone. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Resolve Workspace Conflicts

**Slug:** `GOOGLE_TAG_MANAGER_RESOLVE_WORKSPACE_CONFLICTS`

Sequentially resolve 1-25 Google Tag Manager workspace merge conflicts. Each successful item mutates workspace state without publishing it, so partial success is possible. Processing stops after the first failed or unknown provider outcome, and all later items are marked not_attempted.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `resolutions` | array | Yes | Ordered conflict resolutions to apply sequentially. Pass 1-25 items; each item must contain one complete typed resolved_entity and its corresponding fingerprint when available. |
| `workspace_path` | string | Yes | API-relative path of the workspace containing the conflicts, in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Revert Built-In Variable

**Slug:** `GOOGLE_TAG_MANAGER_REVERT_BUILT_IN_VARIABLE`

Revert one built-in variable type in a Google Tag Manager workspace to its latest synchronized base state. This permanently discards current workspace changes to that variable and may leave it enabled or disabled, as reported in the result.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `variable_type` | string ("builtInVariableTypeUnspecified" | "pageUrl" | "pageHostname" | "pagePath" | "referrer" | "event" | "clickElement" | "clickClasses" | "clickId" | "clickTarget" | "clickUrl" | "clickText" | "firstPartyServingUrl" | "formElement" | "formClasses" | "formId" | "formTarget" | "formUrl" | "formText" | "errorMessage" | "errorUrl" | "errorLine" | "newHistoryUrl" | "oldHistoryUrl" | "newHistoryFragment" | "oldHistoryFragment" | "newHistoryState" | "oldHistoryState" | "historySource" | "containerVersion" | "debugMode" | "randomNumber" | "containerId" | "appId" | "appName" | "appVersionCode" | "appVersionName" | "language" | "osVersion" | "platform" | "sdkVersion" | "deviceName" | "resolution" | "advertiserId" | "advertisingTrackingEnabled" | "htmlId" | "environmentName" | "ampBrowserLanguage" | "ampCanonicalPath" | "ampCanonicalUrl" | "ampCanonicalHost" | "ampReferrer" | "ampTitle" | "ampClientId" | "ampClientTimezone" | "ampClientTimestamp" | "ampClientScreenWidth" | "ampClientScreenHeight" | "ampClientScrollX" | "ampClientScrollY" | "ampClientMaxScrollX" | "ampClientMaxScrollY" | "ampTotalEngagedTime" | "ampPageViewId" | "ampPageLoadTime" | "ampPageDownloadTime" | "ampGtmEvent" | "eventName" | "firebaseEventParameterCampaign" | "firebaseEventParameterCampaignAclid" | "firebaseEventParameterCampaignAnid" | "firebaseEventParameterCampaignClickTimestamp" | "firebaseEventParameterCampaignContent" | "firebaseEventParameterCampaignCp1" | "firebaseEventParameterCampaignGclid" | "firebaseEventParameterCampaignSource" | "firebaseEventParameterCampaignTerm" | "firebaseEventParameterCurrency" | "firebaseEventParameterDynamicLinkAcceptTime" | "firebaseEventParameterDynamicLinkLinkid" | "firebaseEventParameterNotificationMessageDeviceTime" | "firebaseEventParameterNotificationMessageId" | "firebaseEventParameterNotificationMessageName" | "firebaseEventParameterNotificationMessageTime" | "firebaseEventParameterNotificationTopic" | "firebaseEventParameterPreviousAppVersion" | "firebaseEventParameterPreviousOsVersion" | "firebaseEventParameterPrice" | "firebaseEventParameterProductId" | "firebaseEventParameterQuantity" | "firebaseEventParameterValue" | "videoProvider" | "videoUrl" | "videoTitle" | "videoDuration" | "videoPercent" | "videoVisible" | "videoStatus" | "videoCurrentTime" | "scrollDepthThreshold" | "scrollDepthUnits" | "scrollDepthDirection" | "elementVisibilityRatio" | "elementVisibilityTime" | "elementVisibilityFirstTime" | "elementVisibilityRecentTime" | "requestPath" | "requestMethod" | "clientName" | "queryString" | "serverPageLocationUrl" | "serverPageLocationPath" | "serverPageLocationHostname" | "visitorRegion" | "analyticsClientId" | "analyticsSessionId" | "analyticsSessionNumber") | Yes | Single provider-enumerated built-in variable type to revert. |
| `workspace_path` | string | Yes | GTM API-relative workspace path in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Revert Workspace Entity

**Slug:** `GOOGLE_TAG_MANAGER_REVERT_WORKSPACE_ENTITY`

Revert a client, folder, tag, template, transformation, trigger, variable, or zone to its latest synchronized base state without publishing it. Current workspace changes to the entity are permanently discarded, and an entity absent from the base may be removed.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `entity_path` | string | Yes | Full GTM API-relative entity path, such as accounts/123/containers/456/workspaces/789/tags/1011. |
| `entity_type` | string ("client" | "folder" | "tag" | "template" | "transformation" | "trigger" | "variable" | "zone") | Yes | Revert-capable GTM entity family. Google tag configurations do not support revert. |
| `fingerprint` | string | No | Latest workspace entity fingerprint for optimistic concurrency. It is sent only as the fingerprint query parameter. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Set Latest Container Version

**Slug:** `GOOGLE_TAG_MANAGER_SET_LATEST_CONTAINER_VERSION`

Set a stored Google Tag Manager container version as the latest base used when synchronizing workspaces and detecting conflicts or errors. This changes workspace synchronization state only; it does not publish the version or change the container version serving live traffic.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `version_path` | string | Yes | GTM API-relative path of the stored container version to make the latest workspace synchronization base. This changes conflict and error detection for workspace synchronization but does not publish the version to live traffic. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Sync Workspace

**Slug:** `GOOGLE_TAG_MANAGER_SYNC_WORKSPACE`

Synchronize a Google Tag Manager workspace to the latest container version. GTM updates unmodified workspace entities to the latest version and returns conflicts for modified entities. A response containing conflicts is still a successful synchronization, but no container version can be created until all conflicts are resolved.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `workspace_path` | string | Yes | GTM API-relative path of the workspace to synchronize, in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Undelete Container Version

**Slug:** `GOOGLE_TAG_MANAGER_UNDELETE_CONTAINER_VERSION`

Restore a previously deleted Google Tag Manager container version.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `version_path` | string | Yes | GTM API-relative path of the deleted container version to restore, in the form accounts/{account_id}/containers/{container_id}/versions/{version_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update Account

**Slug:** `GOOGLE_TAG_MANAGER_UPDATE_ACCOUNT`

Update one or more editable Google Tag Manager account fields, optionally requiring the latest fingerprint to prevent a concurrent overwrite.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `account` | object | Yes | One or more writable account fields to update. Supply name, share_data, or both; read-only fields are not accepted. |
| `fingerprint` | string | No | Latest account fingerprint to require for optimistic concurrency. |
| `account_path` | string | Yes | Account API-relative path to update, such as accounts/123456. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update Container

**Slug:** `GOOGLE_TAG_MANAGER_UPDATE_CONTAINER`

Update one or more editable Google Tag Manager container fields, optionally requiring the latest fingerprint to prevent a concurrent overwrite.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `container` | object | Yes | One or more writable container fields to update. Omit read-only fields and fields that should not be changed. |
| `fingerprint` | string | No | Latest container fingerprint to require for optimistic concurrency. |
| `container_path` | string | Yes | GTM API-relative path of the container to update, in the form accounts/{account_id}/containers/{container_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update Container Version

**Slug:** `GOOGLE_TAG_MANAGER_UPDATE_CONTAINER_VERSION`

Update one or more editable metadata or content fields of a stored Google Tag Manager container version, optionally requiring its latest fingerprint to prevent a concurrent overwrite.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `fingerprint` | string | No | Latest stored-version fingerprint to require for optimistic concurrency. |
| `version_path` | string | Yes | GTM API-relative path of the stored version to update, in the form accounts/{account_id}/containers/{container_id}/versions/{version_id}. |
| `container_version` | object | Yes | One or more provider-shaped version fields to update. Supply only the fields to replace; read-only IDs, paths, deletion state, fingerprint, and UI URL are omitted. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update Environment

**Slug:** `GOOGLE_TAG_MANAGER_UPDATE_ENVIRONMENT`

Update one or more writable Google Tag Manager environment fields. Non-user environments permit only debug and preview URL changes; an optional current fingerprint prevents concurrent overwrite.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `environment` | object | Yes | One or more writable environment fields to update. For a non-user environment, supply only enable_debug and url because Google Tag Manager rejects other changes. |
| `fingerprint` | string | No | Latest environment fingerprint to require for optimistic concurrency. |
| `environment_path` | string | Yes | GTM API-relative path of the environment to update, in the form accounts/{account_id}/containers/{container_id}/environments/{environment_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update User Permission

**Slug:** `GOOGLE_TAG_MANAGER_UPDATE_USER_PERMISSION`

Replace an existing user's Google Tag Manager account and container access. This can immediately grant or revoke account administration and container read, edit, approve, or publish capabilities. The supplied access is a complete replacement, so verify the current permission first and include every container grant that must remain. This can lock the affected user, including yourself, out of the account or its containers.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `permission` | object | Yes | Complete replacement access for the existing user. The user identity comes from permission_path and cannot be changed by this action. Omitted container grants are not preserved. |
| `permission_path` | string | Yes | Existing GTM user-permission API-relative path whose access will be replaced, in the form accounts/{account_id}/user_permissions/{user_permission_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update Workspace

**Slug:** `GOOGLE_TAG_MANAGER_UPDATE_WORKSPACE`

Update one or more editable Google Tag Manager workspace metadata fields, optionally requiring the latest fingerprint to prevent a concurrent overwrite.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `workspace` | object | Yes | One or more writable workspace metadata fields to update. |
| `fingerprint` | string | No | Latest workspace fingerprint to require for optimistic concurrency. It is sent as a query parameter, not in the workspace body. |
| `workspace_path` | string | Yes | GTM API-relative path of the workspace to update, in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update Workspace Entity

**Slug:** `GOOGLE_TAG_MANAGER_UPDATE_WORKSPACE_ENTITY`

Update one strictly typed client, folder, Google tag configuration, tag, custom template, transformation, trigger, variable, or zone in a Google Tag Manager workspace, optionally guarded by its latest fingerprint. This stages the change but does not publish it.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `entity` | object | Yes | Exactly one provider-shaped payload under the key matching entity_type, with one or more writable fields to update. Read-only fields are rejected. |
| `entity_path` | string | Yes | Full GTM API-relative entity path, such as accounts/123/containers/456/workspaces/789/tags/1011. |
| `entity_type` | string ("client" | "folder" | "google_tag_config" | "tag" | "template" | "transformation" | "trigger" | "variable" | "zone") | Yes | Entity family to update; selects exact path and body validation. |
| `fingerprint` | string | No | Latest entity fingerprint for optimistic concurrency. It is sent only as the fingerprint query parameter. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |
