> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Set Latest Version

> Marks a Google Tag Manager container version as the latest, which new workspaces are based on

Marks a Google Tag Manager container version as the latest, which new workspaces are based on. Does not publish it.

|                       |                          |
| --------------------- | ------------------------ |
| **App**               | Google Tag Manager       |
| **Operation ID**      | `gtm_set_latest_version` |
| **Type**              | Action                   |
| **Connection**        | `gtm` (required)         |
| **Credits per run**   | 1                        |
| **Agent / MCP tool**  | Yes                      |
| **Requires approval** | Yes (write operation)    |

## Inputs

| Field       | Type           | Required | Default | Description                                                                                             |
| ----------- | -------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------- |
| `account`   | DynamicAccount | Yes      | -       | Select the Google Tag Manager account.                                                                  |
| `container` | DynamicAccount | Yes      | -       | Select the container.                                                                                   |
| `version`   | DynamicAccount | Yes      | -       | Select the container version, or provide a version ID from gtm\_list\_versions or gtm\_create\_version. |

## Output

**Type**: `Dict`

Returns the containerVersion as provided by the Tag Manager API.
