For more information on using API

POST https://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: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

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.