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

# Criar ou Atualizar Plugin

Cria ou substitui a configuração de um plugin. `data` segue o mesmo formato do painel para cada tipo:

| `type` | `data` |
| - | - |
| `CRISP` | `website_id` |
| `FACEBOOK_PIXEL` | `pixels`: até 5 itens `{ pixel_id, api_token }` (`api_token` opcional, para a API de conversões) |
| `GOOGLE_TAG_MANAGER` | `gtm_id` |
| `GOOGLE_ANALYTICS` | `measurement_id` |
| `GOOGLE_ADS` | `pixels`: até 5 itens `{ conversion_id, conversion_label }` |
| `TAWK_TO` | `property_id`, `widget_id` |
| `MERCHANT_CENTER` | `enabled` (boolean) |
| `UTMIFY` | `api_token`, `send_organic` (boolean) |

Segredo não enviado mantém o que está salvo: omitir `api_token` (da UTMify, ou de um pixel que já existe com o mesmo `pixel_id`) preserva o token atual. Enviar `null` apaga. Os indicadores `api_token_set` das respostas podem ser devolvidos no corpo; são ignorados.

> [!NOTE]
>
> Exige a permissão **Gerenciar Plugins** (`MANAGE_PLUGINS`) do usuário que criou o token. Veja [Permissões do token](https://docs.selltrust.com.br/api-reference/permissions.md).

**Authorization** `string` *required*

Token de API no formato `Bearer stk_live_...`.

**type** `string` *required*

Tipo do plugin, como em `available_types` de [Listar Plugins](https://docs.selltrust.com.br/api-reference/plugins/list.md).

**data** `object` *required*

Configuração do plugin, conforme a tabela acima.

```json Exemplo de corpo (UTMIFY) theme={null}
{
  "data": {
    "api_token": "seu-token-utmify",
    "send_organic": true
  }
}
```

```json Response theme={null}
{
  "id": "uuid-do-plugin",
  "type": "UTMIFY",
  "data": {
    "send_organic": true,
    "api_token_set": true
  },
  "created_at": "2026-11-10T14:30:00.000Z",
  "updated_at": "2026-11-10T14:30:00.000Z"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.