POST api/email/template/save

Request Information

URI Parameters

None.

Body Parameters

EmailTemplate
NameDescriptionTypeAdditional information
Id

integer

None.

Tipo

string

None.

Description

string

None.

Subject

string

None.

From

string

None.

To

string

None.

Cc

string

None.

Bcc

string

None.

ShowInAction

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Tipo": "sample string 2",
  "Description": "sample string 3",
  "Subject": "sample string 4",
  "From": "sample string 5",
  "To": "sample string 6",
  "Cc": "sample string 7",
  "Bcc": "sample string 8",
  "ShowInAction": true
}

text/html

Sample:
{"Id":1,"Tipo":"sample string 2","Description":"sample string 3","Subject":"sample string 4","From":"sample string 5","To":"sample string 6","Cc":"sample string 7","Bcc":"sample string 8","ShowInAction":true}

application/xml, text/xml

Sample:
<EmailTemplate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FoneClube.Business.Commons.Entities.Generic">
  <Bcc>sample string 8</Bcc>
  <Cc>sample string 7</Cc>
  <Description>sample string 3</Description>
  <From>sample string 5</From>
  <Id>1</Id>
  <ShowInAction>true</ShowInAction>
  <Subject>sample string 4</Subject>
  <Tipo>sample string 2</Tipo>
  <To>sample string 6</To>
</EmailTemplate>

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

Response Information

Resource Description

boolean

Response Formats

application/json, text/json, text/html

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>