POST v1_0/api/Message/PostMessage

Request Information

URI Parameters

None.

Body Parameters

InsertMessage
NameDescriptionTypeAdditional information
MessageTo

string

Required

MessageFrom

string

None.

Subject

string

None.

MessageBody

string

None.

MessageRandomString

string

None.

Request Formats

application/json, text/json

Sample:
{
  "MessageTo": "sample string 1",
  "MessageFrom": "sample string 2",
  "Subject": "sample string 3",
  "MessageBody": "sample string 4",
  "MessageRandomString": "sample string 5"
}

application/xml, text/xml

Sample:
<InsertMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CsharpCornerAPI.Models.v1_0">
  <MessageBody>sample string 4</MessageBody>
  <MessageFrom>sample string 2</MessageFrom>
  <MessageRandomString>sample string 5</MessageRandomString>
  <MessageTo>sample string 1</MessageTo>
  <Subject>sample string 3</Subject>
</InsertMessage>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.