PATCH
/
api
/
external
/
chatbot
/
{chatbotId}
/
chat-widget
curl --request PATCH \
  --url https://v2.okchat.ai/api/external/chatbot/{chatbotId}/chat-widget \
  --header 'Content-Type: application/json' \
  --data '{
  "header": "Customer Support",
  "language": "auto",
  "logo": "https://example.com/logo.png",
  "name": "Support Assistant",
  "primaryColor": "#4F46E5",
  "secondaryColor": "#10B981",
  "slogan": "How can I help you today?"
}'
{
  "chat_widget_config": {
    "header": "Customer Support",
    "language": "auto",
    "logo": "https://example.com/logo.png",
    "name": "Support Assistant",
    "primaryColor": "#4F46E5",
    "secondaryColor": "#10B981",
    "slogan": "How can I help you today?"
  },
  "message": "Chat widget config updated successfully"
}

Headers

x-api-key
string
Example:

"15a23c21867f4f38b0b46f5e4adb1caf87a040b34eb58f68"

Path Parameters

chatbotId
string
required
Example:

"3317853e-0af2-427d-a56f-351a9587f48f"

Body

application/json

Response

200 - application/json

Example

The response is of type object.