Webchats

Update webchat configuration

PUT
/api/webchats/{id}

Update mutable fields on a webchat widget. icon accepts an empty string or null to clear the configured icon.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/api/webchats/string" \  -H "Content-Type: application/json" \  -d '{    "starterMessage": "Hi! Looking for help today?",    "isEnabled": true,    "allowedDomains": [      "https://example.com",      "https://help.example.com"    ]  }'
{  "message": "Webchat configuration created",  "data": {    "_id": "67d3a0b0c0d0e0f0a0b0c0d0",    "name": "Marketing site widget",    "isEnabled": true  }}