POST api/Chat/SendMessage_v2

Request Information

URI Parameters

None.

Body Parameters

UserChatMessage
NameDescriptionTypeAdditional information
chatId

integer

None.

senderId

integer

Required

Range: inclusive between 220 and 2147483647

message

string

Required

Min length: 1

Request Formats

application/json, text/json

Sample:
{
  "chatId": 1,
  "senderId": 1,
  "message": "sample string 2"
}

text/plain, application/octet-stream

Sample:
{"chatId":1,"senderId":1,"message":"sample string 2"}

application/xml, text/xml

Sample:
<UserChatMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RashakaApi.ApiRequestBody">
  <chatId>1</chatId>
  <message>sample string 2</message>
  <senderId>1</senderId>
</UserChatMessage>

multipart/form-data, application/form-data

Sample:
<UserChatMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RashakaApi.ApiRequestBody"><chatId>1</chatId><message>sample string 2</message><senderId>1</senderId></UserChatMessage>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/plain, application/octet-stream, application/xml, text/xml, multipart/form-data, application/form-data

Sample:

Sample not available.