> ## 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.

# Create Version

> Snapshots a Google Tag Manager workspace into a new container version, ready for gtm_publish_version

Snapshots a Google Tag Manager workspace into a new container version, ready for gtm\_publish\_version. GTM deletes the workspace after versioning and replaces it with a new default workspace. Fails with clear guidance if the workspace has compiler errors or merge conflicts.

|                       |                       |
| --------------------- | --------------------- |
| **App**               | Google Tag Manager    |
| **Operation ID**      | `gtm_create_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.                                                                                                                                                 |
| `workspace` | DynamicAccount | Yes      | -       | Select the workspace to snapshot into a new container version. The workspace is deleted by GTM after the version is created; a new default workspace takes its place. |
| `name`      | string         | No       | -       | Name for the new version.                                                                                                                                             |
| `notes`     | string         | No       | -       | Notes describing what changed in this version.                                                                                                                        |

## Output

**Type**: `Dict`

Returns the created containerVersion (with containerVersionId) and related fields as provided by the Tag Manager API.
