routeToBot
Engages the specified bot in the specified active chat.
HTTP POST /livechat/:domain/routeToBot
Path Variables:
Name | Mandatory | Type | Description |
---|---|---|---|
domain | NO | STRING | Unique domain identifier |
Authorization: see Authentication mechanisms
Request Body:
Type: JSON
Name | Mandatory | Type | Description |
---|---|---|---|
chatID | YES | STRING | Unique Chat identifier |
botID | YES | STRING | Unique Bot identifier |
Response:
Type: JSON
Name | Type | Description |
---|---|---|
result | BOOLEAN | If true, the service response was performed correctly |
error | NULL / STRING | Contains the error description if an error has occurred in the request |
Example:
Request
http://<hostname>:<port>/livechat/default/routeToBot
Request body
{
"chatID" : "CHAT_DEFAULT_878b8026-2f1c-4f66-97d5-0a31cddad97a",
"botID" : "BOT1"
}
Response
{
"result": true,
"error": null
}