PATCH
/
messages
/
{id}
/
interacted
Mark message as Interacted
curl --request PATCH \
  --url https://{appid}.api-{region}.cometchat.io/v3/messages/{id}/interacted \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --header 'onBehalfOf: <onbehalfof>' \
  --data '{
  "interactions": [
    "<string>"
  ]
}'
{
  "data": {
    "success": true,
    "message": "The message id 7 has been marked as interacted for the user superhero1."
  }
}

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 user on whose behalf the action is performed.

Path Parameters

id
string
required

Id of the message whose details are to be fetched.

Body

application/json

Response

200 - application/json

Marking Message as Interacted

The response is of type object.