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

The body is of type object.

Response

200
application/json

Configurações do widget atualizadas com sucesso

The response is of type object.