更新聊天机器人设置 - 本地化
PATCH
/api/v0/chatbots/{chatbotId}/settings/localization更新聊天机器人的本地化设置
请求参数
Path 参数
chatbotId
string
必需
聊天机器人的 ID
Header 参数
Authorization
string
必需
示例值:
Bearer <token>
Content-Type
string
必需
示例值:
application/json
Body 参数application/json
chatHome
object
可选
聊天机器人主屏幕的本地化设置
home
string
必需
addDetails
string
必需
startConversation
string
必需
starting
string
必需
chatMessages
object
可选
聊天机器人中消息屏幕的本地化设置
messages
string
必需
noMessages
string
必需
loginToSeeHistory
string
必需
historyShowsUpHere
string
必需
verifyEmail
string
必需
startConversation
string
必需
starting
string
必需
chatMessage
object
可选
聊天机器人中各个对话的本地化设置
botName
string
必需
yourName
string
必需
agentName
string
必需
escalationHeading
string
必需
escalationSubHeading
string
必需
yesContinue
string
必需
cancel
string
必需
conversationEscalated
string
必需
chatAccount
object
可选
聊天机器人中帐户屏幕的本地化设置
account
string
必需
verifyEmail
string
必需
loginToSeeHistory
string
必需
emailLabel
string
必需
nameLabel
string
必需
phoneLabel
string
必需
sendingOtp
string
必需
verifyOtp
string
必需
sentOtpToEmail
string
必需
otp
string
必需
verifyAndContinue
string
必需
notReceivedOtpYet
string
必需
resend
string
必需
editDetails
string
必需
resetting
string
必需
verifying
string
必需
logout
string
必需
loggingOut
string
必需
verified
string
必需
edit
string
必需
update
string
必需
updating
string
必需
示例
{
"chatHome": {
"home": "Home",
"addDetails": "Add details",
"startConversation": "Start a conversation",
"starting": "Starting..."
},
"chatMessages": {
"messages": "Messages",
"noMessages": "No Messages",
"loginToSeeHistory": "Verify your email to save your conversation history.",
"historyShowsUpHere": "Your conversation history shows up here.",
"verifyEmail": "Verify your email",
"startConversation": "Start a conversation",
"starting": "Starting..."
},
"chatMessage": {
"botName": "Bot",
"yourName": "You",
"agentName": "Agent",
"escalationHeading": "Are you sure you want to escalate the chat to human support?",
"escalationSubHeading": "This conversation will be shared with the human support and they will get back to you as soon as they can.",
"yesContinue": "Yes, continue",
"cancel": "Cancel",
"conversationEscalated": "👨💼 Conversation changed to human mode"
},
"chatAccount": {
"account": "Account",
"verifyEmail": "Verify your email",
"loginToSeeHistory": "Verify your email to save your chat history.",
"emailLabel": "Email",
"nameLabel": "Name",
"phoneLabel": "Phone Number",
"sendingOtp": "Sending OTP...",
"verifyOtp": "Verify OTP",
"sentOtpToEmail": "We sent the OTP to your email address",
"otp": "OTP",
"verifyAndContinue": "Verify & Continue",
"notReceivedOtpYet": "Didn't receive OTP yet?",
"resend": "Resend",
"editDetails": "Edit Details",
"resetting": "Resetting...",
"verifying": "Verifying...",
"logout": "Logout",
"loggingOut": "Logging out...",
"verified": "Verified",
"edit": "Edit",
"update": "Update",
"updating": "Updating..."
}
}
示例代码
返回响应
成功(200)
请求有误(400)
没有权限(401)
禁止访问(403)
服务器错误(500)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
success
boolean
必需
message
string
必需
data
object
必需
示例
成功示例
{
"success": true,
"message": "Updated localization settings of the chatbot successfully",
"data": {}
}
最后修改时间: 8 个月前