POST api/ChatAPI/channel/sendmessage

SendMessage

Request Information

Parameters

NameDescriptionAdditional information
request

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "sender": "sample string 1",
  "message": "sample string 2",
  "channelid": "sample string 3",
  "members": [
    {
      "email": "sample string 1",
      "login": "sample string 2"
    },
    {
      "email": "sample string 1",
      "login": "sample string 2"
    },
    {
      "email": "sample string 1",
      "login": "sample string 2"
    }
  ]
}

text/javascript

Sample:
{"sender":"sample string 1","message":"sample string 2","channelid":"sample string 3","members":[{"email":"sample string 1","login":"sample string 2"},{"email":"sample string 1","login":"sample string 2"},{"email":"sample string 1","login":"sample string 2"}]}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ChatSendMessageRequest'.