Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
38 lines (28 loc) · 1.45 KB

File metadata and controls

38 lines (28 loc) · 1.45 KB

Delete Livechat Message

Remove a specific livechat message.

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

Path Variables

KeyExample ValueDescription
_id*ZKWP8LfGnRHQ3ozWaThe message ID.

Body

KeyExample ValueDescription
token*54fc5544030bThe visitor token.
rid*hGFwSKA28nRKut3pDThe room ID.

Example Call

{% code overflow="wrap" %}

curl --location --request DELETE 'http://localhost:3000/api/v1/livechat/message/mz6TKjsvZiausYjev' \
--header 'Content-Type: application/json' \
--data '{
    "token": "54fc5544030bcecda053311cb6b989",
    "rid": "hGFwSKA28nRKut3pD"
}'

{% endcode %}

Example Response

{
  "message": {
    "_id": "ZKWP8LfGnRHQ3ozWa",
    "ls": "2018-09-14T13:31:33.279Z"
  },
  "success": true
}