For more information on using API

POST http://webapi.mymarketing.co.il/api/templates

Create and return a new template.

Request Information

URI Parameters

Body Parameters

ApiCampaignTemplateUpdatePost

Name

Description

Type

Additional information

name

Name of the template

string

Required

subject

Subject

string
frome_name

The 'from name' of the email

string
frome_mail

The 'from email' of the email

string
mail_subject

Campaign subject

string
classification

Template classification. Used to classify operational messages reports

string
AddPrintButton

Add Print Button

boolean
template_category_id

Template category id

integer
template_category_name

Template category Name

string
campaign_encoding

Campaign encoding of the given template

content

The template HTML

string

Request Formats

application/json, text/json

Sample:
{
  "name": "sample string 1",
  "subject": "sample string 2",
  "frome_name": "sample string 3",
  "frome_mail": "sample string 4",
  "mail_subject": "sample string 5",
  "classification": "sample string 6",
  "AddPrintButton": true,
  "template_category_id": 8,
  "template_category_name": "sample string 9",
  "campaign_encoding": "IBM_EBCDIC_US_Canada",
  "content": "sample string 11"
}

application/xml, text/xml

Sample:
<ApiCampaignTemplateUpdatePost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models">
  <AddPrintButton>true</AddPrintButton>
  <campaign_encoding>IBM_EBCDIC_US_Canada</campaign_encoding>
  <classification>sample string 6</classification>
  <content>sample string 11</content>
  <frome_mail>sample string 4</frome_mail>
  <frome_name>sample string 3</frome_name>
  <mail_subject>sample string 5</mail_subject>
  <name>sample string 1</name>
  <subject>sample string 2</subject>
  <template_category_id>8</template_category_id>
  <template_category_name>sample string 9</template_category_name>
</ApiCampaignTemplateUpdatePost>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiCampaignTemplateBase

Name

Description

Type

Additional information

name

Name of the template

string

Required

subject

Subject

string
frome_name

The 'from name' of the email

string
frome_mail

The 'from email' of the email

string
mail_subject

Campaign subject

string
classification

Template classification. Used to classify operational messages reports

string
AddPrintButton

Add Print Button

boolean
template_category_id

Template category id

integer
template_category_name

Template category Name

string
campaign_encoding

Campaign encoding of the given template

content

The template HTML

string

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.