POST chat/message/add/{token}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| token | string |
Required |
Body Parameters
MessagesModel| Name | Description | Type | Additional information |
|---|---|---|---|
| conversationid | integer |
None. |
|
| senderid | integer |
None. |
|
| message | string |
None. |
|
| attachmenturl | string |
None. |
|
| createdon | date |
None. |
|
| deletedon | date |
None. |
|
| sendername | string |
None. |
|
| senderpic | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"conversationid": 1,
"senderid": 2,
"message": "sample string 3",
"attachmenturl": "sample string 4",
"createdon": "2020-12-29T20:31:34.5333929+00:00",
"deletedon": "2020-12-29T20:31:34.5333929+00:00",
"sendername": "sample string 7",
"senderpic": "sample string 8"
}
application/xml, text/xml
Sample:
<MessagesModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/connecttierWebAPI.Models"> <attachmenturl>sample string 4</attachmenturl> <conversationid>1</conversationid> <createdon>2020-12-29T20:31:34.5333929+00:00</createdon> <deletedon>2020-12-29T20:31:34.5333929+00:00</deletedon> <message>sample string 3</message> <senderid>2</senderid> <sendername>sample string 7</sendername> <senderpic>sample string 8</senderpic> </MessagesModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseModel| Name | Description | Type | Additional information |
|---|---|---|---|
| data | LoginResponse |
None. |
|
| meta | meta |
None. |
Response Formats
application/json, text/json
Sample:
{
"data": {
"token": "sample string 1",
"userid": 2,
"name": "sample string 3",
"lastname": "sample string 4",
"admin": true,
"manager": true,
"position": "sample string 7",
"project": "sample string 8",
"approvals": 9,
"notificationtoken": "sample string 10"
},
"meta": {
"code": 1,
"detail": "sample string 2"
}
}
application/xml, text/xml
Sample:
<ResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/connecttierWebAPI.Models">
<data>
<admin>true</admin>
<approvals>9</approvals>
<lastname>sample string 4</lastname>
<manager>true</manager>
<name>sample string 3</name>
<notificationtoken>sample string 10</notificationtoken>
<position>sample string 7</position>
<project>sample string 8</project>
<token>sample string 1</token>
<userid>2</userid>
</data>
<meta>
<code>1</code>
<detail>sample string 2</detail>
</meta>
</ResponseModel>