POST api/NewTemplate

Request Information

URI Parameters

None.

Body Parameters

MessageLog
NameDescriptionTypeAdditional information
AuthToken

string

None.

Item

string

None.

ItemType

string

None.

HtmlTemplate

string

None.

TableName

string

None.

PrimaryKey

integer

None.

Subject

string

None.

Body

string

None.

SmtpId

integer

None.

ToField

string

None.

CcField

string

None.

BccField

string

None.

MessageLogTypeId

integer

None.

MessageLogStatusId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "AuthToken": "sample string 1",
  "Item": "sample string 2",
  "ItemType": "sample string 3",
  "HtmlTemplate": "sample string 4",
  "TableName": "sample string 5",
  "PrimaryKey": 1,
  "Subject": "sample string 6",
  "Body": "sample string 7",
  "SmtpId": 1,
  "ToField": "sample string 8",
  "CcField": "sample string 9",
  "BccField": "sample string 10",
  "MessageLogTypeId": 1,
  "MessageLogStatusId": 1
}

application/xml, text/xml

Sample:
<MessageLog xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Visibill.EmailTemplate.Api.Framework">
  <AuthToken>sample string 1</AuthToken>
  <BccField>sample string 10</BccField>
  <Body>sample string 7</Body>
  <CcField>sample string 9</CcField>
  <HtmlTemplate>sample string 4</HtmlTemplate>
  <Item>sample string 2</Item>
  <ItemType>sample string 3</ItemType>
  <MessageLogStatusId>1</MessageLogStatusId>
  <MessageLogTypeId>1</MessageLogTypeId>
  <PrimaryKey>1</PrimaryKey>
  <SmtpId>1</SmtpId>
  <Subject>sample string 6</Subject>
  <TableName>sample string 5</TableName>
  <ToField>sample string 8</ToField>
</MessageLog>

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.