POST api/chat/message/send
Request Information
URI Parameters
None.
Body Parameters
ChatMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| FromUserId | integer |
None. |
|
| ToUserId | integer |
None. |
|
| GroupId | integer |
None. |
|
| DemandId | integer |
None. |
|
| DemandOrderId | integer |
None. |
|
| ConversationId | integer |
None. |
|
| SenderIdentity | integer |
None. |
|
| StaffAgentId | integer |
None. |
|
| SenderDisplayName | string |
None. |
|
| MsgType | string |
None. |
|
| Content | string |
None. |
|
| FileName | string |
None. |
|
| Status | byte |
None. |
|
| CreateTime | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"FromUserId": 2,
"ToUserId": 3,
"GroupId": 4,
"DemandId": 5,
"DemandOrderId": 6,
"ConversationId": 7,
"SenderIdentity": 8,
"StaffAgentId": 9,
"SenderDisplayName": "sample string 10",
"MsgType": "sample string 11",
"Content": "sample string 12",
"FileName": "sample string 13",
"Status": 64,
"CreateTime": "2026-10-05T23:25:47.1741521+08:00"
}
application/xml, text/xml
Sample:
<ChatMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ASDS.API.Chat"> <Content>sample string 12</Content> <ConversationId>7</ConversationId> <CreateTime>2026-10-05T23:25:47.1741521+08:00</CreateTime> <DemandId>5</DemandId> <DemandOrderId>6</DemandOrderId> <FileName>sample string 13</FileName> <FromUserId>2</FromUserId> <GroupId>4</GroupId> <Id>1</Id> <MsgType>sample string 11</MsgType> <SenderDisplayName>sample string 10</SenderDisplayName> <SenderIdentity>8</SenderIdentity> <StaffAgentId>9</StaffAgentId> <Status>64</Status> <ToUserId>3</ToUserId> </ChatMessage>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.