post https://{appid}.api-{region}.cometchat.io/v3/messages//thread
Sends Threaded Message on behalf of a user.
Messages that are started from a particular message are called Threaded messages or simply threads. Each Thread is attached to a message which is the Parent message for that thread.
You can either send a message to a User or a Group based on the receiverType and the UID/GUID specified for the message. A message can belong to either of the below types:
Text Message
Media Message
Custom Message.Any of the above messages can be sent in a thread.
The ID of the message sent in the path parameter denotes the parent message.
For more details please visit here
Request sample:
POST /messages/:id/thread HTTP/1.1
Content-type: application/json
Accept: application/json
{
"receiver": "string",
"receiverType": "string",
"category": "string",
"type": "string",
"data": {
"text": "string",
"metadata":{
"any key": "value pair",
},
"customData": {
"any key": "value pair",
},
"attachments": [{
"url": "string",
"name": "string",
"mimeType": "string"
, "extension": "string"
, "size": "string"
}]
},
"multipleReceivers": {
"uids": ["array of string UIDs"],
"guids": ["array of string GUIDs"]
},
"tags": ["array of strings"]
}