Update Livechat Message

Updates a Livechat message

Update a specific livechat message.

HTTP MethodURLRequires Auth

PUT

/api/v1/livechat/message/:_id

no

Path Variables

KeyExample ValueDescription

_id *

ZKWP8LfGnRHQ3ozWa

The message ID that you want to update.

Body

KeyExample ValueDescription

token

iNKE8a6k6cjbqWhWd

The visitor token.

rid

zRAeTszXor8CCPceB

The room ID.

msg

editing a livechat message..

The updated message that you want to send.

Example Call

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.."
}'

Example Response

{
  "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
}

Last updated

Rocket.Chat versions receive support for six months after release.