DELETE
/
users
/
{uid}
/
conversation
/
read
Mark conversation messages as unread
curl --request DELETE \
  --url https://{appid}.api-{region}.cometchat.io/v3/users/{uid}/conversation/read \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --header 'onBehalfOf: <onbehalfof>' \
  --data '{
  "messageId": 123
}'
{
  "data": {
    "success": true,
    "message": "The messages after the message id 340 from the user demo1 are marked as unread for the user demo3."
  }
}

Authorizations

apikey
string
header
required

API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).

Headers

onBehalfOf
string
required

UID of the receiver of the message

Path Parameters

uid
string
required

UID of the user whose conversation needs to be fetched.

Body

application/json

Response

200 - application/json

Marking Conversation as unread

The response is of type object.