POST api/Notifications/SendEmail

Request Information

URI Parameters

None.

Body Parameters

Email
NameDescriptionTypeAdditional information
SUBJECT

string

None.

BODY

string

None.

TO_EMAIL_ADDRESS

string

None.

RESPONSE

string

None.

Request Formats

application/json, text/json

Sample:
{
  "SUBJECT": "sample string 1",
  "BODY": "sample string 2",
  "TO_EMAIL_ADDRESS": "sample string 3",
  "RESPONSE": "sample string 4"
}

application/xml, text/xml

Sample:
<Email xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EventMubarakAPI.Models">
  <BODY>sample string 2</BODY>
  <RESPONSE>sample string 4</RESPONSE>
  <SUBJECT>sample string 1</SUBJECT>
  <TO_EMAIL_ADDRESS>sample string 3</TO_EMAIL_ADDRESS>
</Email>

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 'Email'.

Response Information

Resource Description

ResponseOfEmail
NameDescriptionTypeAdditional information
ResponseCode

integer

None.

ResponseMessage

string

None.

Data

Collection of Email

None.

Response Formats

application/json, text/json

Sample:
{
  "ResponseCode": 1,
  "ResponseMessage": "sample string 2",
  "Data": [
    {
      "SUBJECT": "sample string 1",
      "BODY": "sample string 2",
      "TO_EMAIL_ADDRESS": "sample string 3",
      "RESPONSE": "sample string 4"
    },
    {
      "SUBJECT": "sample string 1",
      "BODY": "sample string 2",
      "TO_EMAIL_ADDRESS": "sample string 3",
      "RESPONSE": "sample string 4"
    }
  ]
}

application/xml, text/xml

Sample:
<ResponseOfEmail_SzSEHSlJ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EventMubarakAPI.Models">
  <Data>
    <Email>
      <BODY>sample string 2</BODY>
      <RESPONSE>sample string 4</RESPONSE>
      <SUBJECT>sample string 1</SUBJECT>
      <TO_EMAIL_ADDRESS>sample string 3</TO_EMAIL_ADDRESS>
    </Email>
    <Email>
      <BODY>sample string 2</BODY>
      <RESPONSE>sample string 4</RESPONSE>
      <SUBJECT>sample string 1</SUBJECT>
      <TO_EMAIL_ADDRESS>sample string 3</TO_EMAIL_ADDRESS>
    </Email>
  </Data>
  <ResponseCode>1</ResponseCode>
  <ResponseMessage>sample string 2</ResponseMessage>
</ResponseOfEmail_SzSEHSlJ>