POST v1/CampaignTemplateEditor/TemplateData

Save template data

Request Information

URI Parameters

None.

Body Parameters

CampaignTemplateEditorDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Name

string

None.

EmailSubjectLine

string

None.

IsMarketing

boolean

None.

MergeIds

string

None.

TemplateHtml

string

None.

DateUpdated

date

None.

SystemDefined

boolean

None.

UsedInItems

Collection of UsedInItem

None.

CampaignContext

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "e228e279-9fc3-475d-8f72-cd55ad087757",
  "Name": "sample string 1",
  "EmailSubjectLine": "sample string 2",
  "IsMarketing": true,
  "MergeIds": "sample string 3",
  "TemplateHtml": "sample string 4",
  "DateUpdated": "2017-12-17T07:57:09.6752575+00:00",
  "SystemDefined": true,
  "UsedInItems": [
    {
      "Id": "4ae0dd92-759d-4afc-b5c2-4b98fbf1ccb4",
      "Name": "sample string 2",
      "ContextId": 3,
      "ContextName": "sample string 4"
    },
    {
      "Id": "4ae0dd92-759d-4afc-b5c2-4b98fbf1ccb4",
      "Name": "sample string 2",
      "ContextId": 3,
      "ContextName": "sample string 4"
    }
  ],
  "CampaignContext": "sample string 7"
}

application/xml, text/xml

Sample:
<CampaignTemplateEditorDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Campaign">
  <CampaignContext>sample string 7</CampaignContext>
  <DateUpdated>2017-12-17T07:57:09.6752575+00:00</DateUpdated>
  <EmailSubjectLine>sample string 2</EmailSubjectLine>
  <Id>e228e279-9fc3-475d-8f72-cd55ad087757</Id>
  <IsMarketing>true</IsMarketing>
  <MergeIds>sample string 3</MergeIds>
  <Name>sample string 1</Name>
  <SystemDefined>true</SystemDefined>
  <TemplateHtml>sample string 4</TemplateHtml>
  <UsedInItems>
    <UsedInItem>
      <ContextId>3</ContextId>
      <ContextName>sample string 4</ContextName>
      <Id>4ae0dd92-759d-4afc-b5c2-4b98fbf1ccb4</Id>
      <Name>sample string 2</Name>
    </UsedInItem>
    <UsedInItem>
      <ContextId>3</ContextId>
      <ContextName>sample string 4</ContextName>
      <Id>4ae0dd92-759d-4afc-b5c2-4b98fbf1ccb4</Id>
      <Name>sample string 2</Name>
    </UsedInItem>
  </UsedInItems>
</CampaignTemplateEditorDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CampaignTemplateEditorDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Name

string

None.

EmailSubjectLine

string

None.

IsMarketing

boolean

None.

MergeIds

string

None.

TemplateHtml

string

None.

DateUpdated

date

None.

SystemDefined

boolean

None.

UsedInItems

Collection of UsedInItem

None.

CampaignContext

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "d3cffc47-2435-4830-a525-314885a78c41",
  "Name": "sample string 1",
  "EmailSubjectLine": "sample string 2",
  "IsMarketing": true,
  "MergeIds": "sample string 3",
  "TemplateHtml": "sample string 4",
  "DateUpdated": "2017-12-17T07:57:09.7533822+00:00",
  "SystemDefined": true,
  "UsedInItems": [
    {
      "Id": "563c0180-b64a-4888-b99c-eb979f54e993",
      "Name": "sample string 2",
      "ContextId": 3,
      "ContextName": "sample string 4"
    },
    {
      "Id": "563c0180-b64a-4888-b99c-eb979f54e993",
      "Name": "sample string 2",
      "ContextId": 3,
      "ContextName": "sample string 4"
    }
  ],
  "CampaignContext": "sample string 7"
}

application/xml, text/xml

Sample:
<CampaignTemplateEditorDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Campaign">
  <CampaignContext>sample string 7</CampaignContext>
  <DateUpdated>2017-12-17T07:57:09.7533822+00:00</DateUpdated>
  <EmailSubjectLine>sample string 2</EmailSubjectLine>
  <Id>d3cffc47-2435-4830-a525-314885a78c41</Id>
  <IsMarketing>true</IsMarketing>
  <MergeIds>sample string 3</MergeIds>
  <Name>sample string 1</Name>
  <SystemDefined>true</SystemDefined>
  <TemplateHtml>sample string 4</TemplateHtml>
  <UsedInItems>
    <UsedInItem>
      <ContextId>3</ContextId>
      <ContextName>sample string 4</ContextName>
      <Id>563c0180-b64a-4888-b99c-eb979f54e993</Id>
      <Name>sample string 2</Name>
    </UsedInItem>
    <UsedInItem>
      <ContextId>3</ContextId>
      <ContextName>sample string 4</ContextName>
      <Id>563c0180-b64a-4888-b99c-eb979f54e993</Id>
      <Name>sample string 2</Name>
    </UsedInItem>
  </UsedInItems>
</CampaignTemplateEditorDto>