---
title: "PUT /v2/channel/{channelId}/widget-settings"
method: PUT
path: "/v2/channel/{channelId}/widget-settings"
---

# PUT /v2/channel/{channelId}/widget-settings

`PUT /v2/channel/{channelId}/widget-settings`

Atualiza as configurações do canal do tipo widget

## Path parameters

- `channelId` string, required

## Request body

- object
  - `isPublic` boolean — Define se o widget é público ou apenas permitido em alguns sites
  - `initialMessage` string — Mensagem inicial do widget
  - `origins` string[]
  - `suggestMessages` string[]
  - `headerBackground` string — Cor do fundo do topo do widget
  - `headerColor` string — Cor da fonte do topo
  - `messageUserBackground` string — Cor de fundo da mensagem do usuário
  - `buttonBackground` string — Cor de fundo do botão flutuante

## Response `200`

Configurações do widget atualizadas com sucesso

- object
  - `success` boolean

## Other responses

- `400` — Erro inesperado
- `403` — Erro de token

---

[API](https://skmtc.net/gptmaker/apis/openapi-gpt-maker.md) · [All operations](https://skmtc.net/gptmaker/apis/openapi-gpt-maker/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gptmaker/openapi-gpt-maker/versions/bda09b3eba6e/schema)
