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

The template's name

string

Required

subject

The subject of the email that will be sent - for operational messages only

string
classification

Template classification. Used to classify operational messages reports

string
AddPrintButton

Add Print Button

boolean
template_category_id

To which category the template will be added to. Can be found using the endpoint "Get "my templates" categories".

integer
template_category_name

Template category Name. Will be the category name that is related to the category ID. Can be removed in a post/put endpoint

string
campaign_encoding

Campaign encoding of the given template. UTF-8 is recommended in a post/put endpoint

content

The template's content. A clean text (without any design to it) or HTML content. if you send HTML content please note you should use back-slash before each quatation mark.

string

Request Formats

application/json, text/json

Sample:
{
  "name": "sample string 1",
  "subject": "sample string 2",
  "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:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Name>sample string 1</Name>
  <Subject>sample string 2</Subject>
  <Classification>sample string 6</Classification>
  <AddPrintButton>true</AddPrintButton>
  <TemplateCategoryId>8</TemplateCategoryId>
  <TemplateCategoryName>sample string 9</TemplateCategoryName>
  <LanguageId>IBM_EBCDIC_US_Canada</LanguageId>
  <CategoryId>10</CategoryId>
  <HtmlContent>sample string 11</HtmlContent>
</ApiCampaignTemplateUpdatePost>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiCampaignTemplateBase

Name

Description

Type

Additional information

name

The template's name

string

Required

subject

The subject of the email that will be sent - for operational messages only

string
classification

Template classification. Used to classify operational messages reports

string
AddPrintButton

Add Print Button

boolean
template_category_id

To which category the template will be added to. Can be found using the endpoint "Get "my templates" categories".

integer
template_category_name

Template category Name. Will be the category name that is related to the category ID. Can be removed in a post/put endpoint

string
campaign_encoding

Campaign encoding of the given template. UTF-8 is recommended in a post/put endpoint

content

The template's content. A clean text (without any design to it) or HTML content. if you send HTML content please note you should use back-slash before each quatation mark.

string

Response Formats

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

Sample:

Sample not available.