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

# Reauthorize Environment

> Regenerates a Google Tag Manager environment's authorization code, invalidating existing preview links and environment snippets

Regenerates a Google Tag Manager environment's authorization code, invalidating existing preview links and environment snippets.

|                       |                               |
| --------------------- | ----------------------------- |
| **App**               | Google Tag Manager            |
| **Operation ID**      | `gtm_reauthorize_environment` |
| **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.                                                              |
| `environment` | DynamicAccount | Yes      | -       | Select the environment, or provide an environment ID from gtm\_list\_environments. |

## Output

**Type**: `Dict`

Returns the reauthorized environment with its new authorizationCode as provided by the Tag Manager API.
