Terminates an active chat.
HTTP POST /livechat/:domain/endContactByChatID
Path Variables:
Name | Mandatory | Type | Description |
---|---|---|---|
domain | NO | STRING | Unique domain identifier |
Headers:
Name | Mandatory | Type | Description |
---|---|---|---|
ctlivetoken | YES | STRING | Unique ctlive session identifier |
Request Body:
Type: JSON
Name | Mandatory | Type | Description |
---|---|---|---|
chatID | YES | STRING | Unique Chat 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/endContactByChatID
Request body
{ "chatID" : "CHAT_1b434365-0229-4b64-a56c-2942cae63a90" }
Response
{ "result": true, "error": null }