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
header
string
Example:

"Customer Support"

language
string
Example:

"auto"

Example:

"https://example.com/logo.png"

name
string
Example:

"Support Assistant"

primaryColor
string
Example:

"#4F46E5"

secondaryColor
string
Example:

"#10B981"

slogan
string
Example:

"How can I help you today?"

Response

200 - application/json
Example
chat_widget_config
object
message
string
Example:

"Chat widget config updated successfully"