Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 1.84 KB

File metadata and controls

49 lines (38 loc) · 1.84 KB
description
Updates a Livechat message

Update Livechat Message

Update a specific livechat message.

HTTP MethodURLRequires Auth
PUT/api/v1/livechat/message/:_idno

Path Variables

KeyExample ValueDescription
_id *ZKWP8LfGnRHQ3ozWaThe message ID that you want to update.

Body

KeyExample ValueDescription
tokeniNKE8a6k6cjbqWhWdThe visitor token.
ridzRAeTszXor8CCPceBThe room ID.
msgediting a livechat message..The updated message that you want to send.

Example Call

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

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
}