POST api/PEC

Documentation for 'Post'.

Request Information

Parameters

NameDescriptionAdditional information
pec
Documentation for 'pec'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "emailFrom": "sample string 1",
  "emailTo": "sample string 2",
  "subject": "sample string 3",
  "body": "sample string 4",
  "attach": "sample string 5",
  "result": true,
  "errormsg": "sample string 7"
}

application/xml, text/xml

Sample:
<PECEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PECService.Models">
  <attach>sample string 5</attach>
  <body>sample string 4</body>
  <emailFrom>sample string 1</emailFrom>
  <emailTo>sample string 2</emailTo>
  <errormsg>sample string 7</errormsg>
  <result>true</result>
  <subject>sample string 3</subject>
</PECEntity>

application/x-www-form-urlencoded

Sample:

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