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

# Undelete Version

> Restores a deleted Google Tag Manager container version

Restores a deleted Google Tag Manager container version. Find deleted versions with gtm\_list\_versions using include\_deleted.

|                       |                        |
| --------------------- | ---------------------- |
| **App**               | Google Tag Manager     |
| **Operation ID**      | `gtm_undelete_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 restored containerVersion as provided by the Tag Manager API.
