# How to edit a container's configuration

> Replace the GTM configuration key of an existing container without creating another container in Wascer.

The configuration key links your Wascer container to your server container in Google Tag Manager. Replace the key when the configuration changes in GTM or when you want to use another server container, without creating a new container in Wascer.

## Before you start

- Copy the new configuration in Google Tag Manager. It appears when you choose to manually provision the tagging server, as shown in [Step 1. Create a server container in Google Tag Manager](https://wascer.com/ar/helpdesk/primeiros-passos-com-hospedagem-sgtm/criar-um-container-server-no-google-tag-manager).
- The form starts empty and does not show the current key. To keep the current one, open the container's **Overview** and click **Copy** on the **Configuration key** row.

## How to edit

1. In **Containers**, open the container.
2. Click **⋯** (**More actions**) at the top and choose **Edit configuration**. On the **Overview**, the **Edit container** button in the **Container settings** card opens the same form.
3. In the **Config** field, paste the new configuration.
4. Click **Editar** (Edit).

When it works, a success message appears and the window closes.

> **Nota:** This form is currently shown in Portuguese, including its button (**Editar**) and its error messages.

## What happens next

On the **Overview**, the **Configuration key** and **sGTM container ID** rows show the new configuration. The ID is read from inside the key: use it to check that you pasted the right container's configuration. The container's name, identifier and address do not change.

## Common issues

- **Deve ser uma string base64** (must be a base64 string): the value you pasted is not the container configuration. Copy it again from GTM, with no extra spaces.
- **Configuração é obrigatória** (configuration is required): the field cannot be empty. If you do not have the final configuration yet, use one from a test server container in GTM and replace it later.
- If the edit fails, check the configuration and try again. If it keeps failing, [open a ticket](https://wascer.com/ar/helpdesk/suporte/abrir-e-acompanhar-ticket).

Source: https://wascer.com/helpdesk/containers-no-painel/editar-configuracao-do-container
