PUT
/
v2
/
channel
/
{channelId}
/
widget-settings
curl --request PUT \
  --url https://api.gptmaker.ai/v2/channel/{channelId}/widget-settings \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "isPublic": true,
  "initialMessage": "<string>",
  "origins": [
    "<string>"
  ],
  "suggestMessages": [
    "<string>"
  ],
  "headerBackground": "<string>",
  "headerColor": "<string>",
  "messageUserBackground": "<string>",
  "buttonBackground": "<string>"
}'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

channelId
string
required

ID do canal

Body

application/json
Configurações do widget a serem atualizadas
isPublic
boolean

Define se o widget é público ou apenas permitido em alguns sites

initialMessage
string

Mensagem inicial do widget

origins
string[]

Lista de domínios autorizados

suggestMessages
string[]

Lista de sugestões de perguntas

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
application/json
Configurações do widget atualizadas com sucesso
success
boolean
Example:

true