更新聊天机器人外观
开发环境
开发环境
PATCH
/api/v0/chatbots/{chatbotId}/appearance
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'http://dev-cn.your-api-server.com/api/v0/chatbots//appearance' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"title": "My Bot",
"welcomeMessage": "Hello! How can I assist you today?",
"placeholderText": "Ask me anything...",
"brandColor": "#2563eb",
"brandTextColor": "#FFFFFF",
"fontSize": 14,
"height": 85,
"learnMore": "Learn more",
"ctaText": "",
"ctaLink": "",
"watermarkText": "Powered by SiteGPT",
"watermarkLink": "https://sitegpt.ai",
"hideWatermark": false,
"hideSources": false,
"hideTooltip": false,
"hideFeedbackButtons": false,
"rtl": false,
"distanceFromBottom": 16,
"horizontalDistance": 16,
"iconSize": "SMALL",
"iconPosition": "RIGHT"
}'
响应示例响应示例
200 - 成功示例
{
"success": true,
"message": "Updated the chatbot appearance successfully",
"data": {}
}
请求参数
Path 参数
chatbotId
string
必需
Header 参数
Authorization
string
必需
示例值:
Bearer <token>
Content-Type
string
必需
示例值:
application/json
Body 参数application/json
返回响应
修改于 2024-03-28 06:52:41