For more information on using API

PUT https://webapi.mymarketing.co.il/api/campaigns/{id}/design

Update campaign design. Please note: only campaigns that are in draft mode can be updated

Request Information

URI Parameters

Name

Description

Type

Additional information

id

Campaign id.Can be found using the endpoint "Get account's email campaigns..." or in the UI(go to Emails->Emails Lists->click on the campaign's preview -> you'll find the id int the URL)

integer

Required

Body Parameters

ApiCampaignDesign

Name

Description

Type

Additional information

content

Campaign content. Can be a simple text or HTML. Required only if you create a new A/B testing (email campaign - version A). If you don't - only required if you don't use the "template" parameter.

string
language_type

Set your campaign language type - using "UTF-8" is recommended

header_footer_language_type

Set your campaign language type - using "UTF-8" is recommended

is_add_print_email

Add a 'print email' button

boolean
is_auto_css_inliner

An option to set the CSS inline in the HTML content

boolean

Request Formats

application/json, text/json

Sample:
{
  "content": "sample string 1",
  "language_type": "IBM_EBCDIC_US_Canada",
  "header_footer_language_type": "IBM_EBCDIC_US_Canada",
  "is_add_print_email": true,
  "is_auto_css_inliner": true,
  "is_remove_system_links": false
}

application/xml, text/xml

Sample:
<ApiCampaignDesign xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models">
  <content>sample string 1</content>
  <header_footer_language_type>IBM_EBCDIC_US_Canada</header_footer_language_type>
  <is_add_print_email>true</is_add_print_email>
  <is_auto_css_inliner>true</is_auto_css_inliner>
  <is_remove_system_links>false</is_remove_system_links>
  <language_type>IBM_EBCDIC_US_Canada</language_type>
</ApiCampaignDesign>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.