POST api/Chat/AddMessage
Request Information
URI Parameters
None.
Body Parameters
ChatRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| conversationId | integer |
None. |
|
| messageId | integer |
None. |
|
| beforeId | integer |
None. |
|
| employeeId | integer |
None. |
|
| name | string |
None. |
|
| memberIds | Collection of integer |
None. |
|
| body | string |
None. |
|
| fileName | string |
None. |
|
| fileBase64 | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"conversationId": 1,
"messageId": 2,
"beforeId": 3,
"employeeId": 4,
"name": "sample string 5",
"memberIds": [
1,
2
],
"body": "sample string 6",
"fileName": "sample string 7",
"fileBase64": "sample string 8"
}
application/xml, text/xml
Sample:
<ChatController.ChatRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RRCDR_Attendance_API.Controllers">
<beforeId>3</beforeId>
<body>sample string 6</body>
<conversationId>1</conversationId>
<employeeId>4</employeeId>
<fileBase64>sample string 8</fileBase64>
<fileName>sample string 7</fileName>
<memberIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</memberIds>
<messageId>2</messageId>
<name>sample string 5</name>
</ChatController.ChatRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ObjectNone.
Response Formats
application/json, text/json
Sample:
{}
application/xml, text/xml
Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />