description |
---|
Updates a Livechat message |
Update a specific livechat message.
HTTP Method | URL | Requires Auth |
---|---|---|
PUT | /api/v1/livechat/message/:_id | no |
Key | Example Value | Description |
---|---|---|
_id * | ZKWP8LfGnRHQ3ozWa | The message ID that you want to update. |
Key | Example Value | Description |
---|---|---|
token | iNKE8a6k6cjbqWhWd | The visitor token. |
rid | zRAeTszXor8CCPceB | The room ID. |
msg | editing a livechat message.. | The updated message that you want to send. |
{% code overflow="wrap" %}
curl --location --request PUT 'http://localhost:3000/api/v1/livechat/message/txHoTpZdqc5GaTbZ3?token=54fc5544030bcecda053311cb6b98920bdf953f242c129d7b8065000b1f9b2e9&rid=hGFwSKA28nRKut3pD' \
--header 'Content-Type: application/json' \
--data '{
"token": "54fc5544030bcecda053311cb6b9892",
"rid": "hGFwSKA28nRKut3pD",
"msg": "editing livechat message.."
}'
{% endcode %}
{
"message": {
"_id": "ZKWP8LfGnRHQ3ozWa",
"msg": "editing livechat message..",
"u": {
"_id": "YgEoq2djbGdjjZnsL",
"username": "guest-4",
"name": "Livechat Visitor"
},
"ls": "2018-09-14T13:31:33.201Z"
},
"success": true
}