POST v1/CampaignTemplateEditor/TemplateData

Save template data

Request Information

URI Parameters

None.

Body Parameters

Template data

CampaignTemplateEditorDto
NameDescriptionTypeAdditional information
Id

The ID of the Campaign Template Editor

globally unique identifier

None.

Name

The Name of the Campaign Template Editor

string

None.

EmailSubjectLine

The subject of the email

string

None.

IsMarketing

Indicates if email is marketing

boolean

None.

MergeIds

The ID of the merge

string

None.

TemplateHtml

HTML template

string

None.

DateUpdated

Gets or sets the date of the update.

date

None.

SystemDefined

Gets or sets a value indicating whether template is [system defined].

boolean

None.

UsedInItems

List of campaigns which use template

Collection of UsedInItem

None.

CampaignContext

Context of the campaign

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "9eb339e0-7997-4a18-8e54-c4f4e64b31e6",
  "Name": "sample string 1",
  "EmailSubjectLine": "sample string 2",
  "IsMarketing": true,
  "MergeIds": "sample string 3",
  "TemplateHtml": "sample string 4",
  "DateUpdated": "2026-08-14T18:23:27.9118943+00:00",
  "SystemDefined": true,
  "UsedInItems": [
    {
      "Id": "3e79537d-0fec-4a80-9813-bff7cdcf1ec3",
      "Name": "sample string 2",
      "ContextId": 3,
      "ContextName": "sample string 4"
    },
    {
      "Id": "3e79537d-0fec-4a80-9813-bff7cdcf1ec3",
      "Name": "sample string 2",
      "ContextId": 3,
      "ContextName": "sample string 4"
    }
  ],
  "CampaignContext": "sample string 7"
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CampaignTemplateEditorDto'.

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>2026-08-14T18:23:27.9118943+00:00</DateUpdated>
  <EmailSubjectLine>sample string 2</EmailSubjectLine>
  <Id>9eb339e0-7997-4a18-8e54-c4f4e64b31e6</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>3e79537d-0fec-4a80-9813-bff7cdcf1ec3</Id>
      <Name>sample string 2</Name>
    </UsedInItem>
    <UsedInItem>
      <ContextId>3</ContextId>
      <ContextName>sample string 4</ContextName>
      <Id>3e79537d-0fec-4a80-9813-bff7cdcf1ec3</Id>
      <Name>sample string 2</Name>
    </UsedInItem>
  </UsedInItems>
</CampaignTemplateEditorDto>

Response Information

Resource Description

Saved template

CampaignTemplateEditorDto
NameDescriptionTypeAdditional information
Id

The ID of the Campaign Template Editor

globally unique identifier

None.

Name

The Name of the Campaign Template Editor

string

None.

EmailSubjectLine

The subject of the email

string

None.

IsMarketing

Indicates if email is marketing

boolean

None.

MergeIds

The ID of the merge

string

None.

TemplateHtml

HTML template

string

None.

DateUpdated

Gets or sets the date of the update.

date

None.

SystemDefined

Gets or sets a value indicating whether template is [system defined].

boolean

None.

UsedInItems

List of campaigns which use template

Collection of UsedInItem

None.

CampaignContext

Context of the campaign

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "efcea9e4-30d6-46ae-b62b-a13357f5f4ab",
  "Name": "sample string 1",
  "EmailSubjectLine": "sample string 2",
  "IsMarketing": true,
  "MergeIds": "sample string 3",
  "TemplateHtml": "sample string 4",
  "DateUpdated": "2026-08-14T18:23:27.9275509+00:00",
  "SystemDefined": true,
  "UsedInItems": [
    {
      "Id": "2cf45a82-b7a3-44be-b00f-0157b9b9431f",
      "Name": "sample string 2",
      "ContextId": 3,
      "ContextName": "sample string 4"
    },
    {
      "Id": "2cf45a82-b7a3-44be-b00f-0157b9b9431f",
      "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>2026-08-14T18:23:27.9275509+00:00</DateUpdated>
  <EmailSubjectLine>sample string 2</EmailSubjectLine>
  <Id>efcea9e4-30d6-46ae-b62b-a13357f5f4ab</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>2cf45a82-b7a3-44be-b00f-0157b9b9431f</Id>
      <Name>sample string 2</Name>
    </UsedInItem>
    <UsedInItem>
      <ContextId>3</ContextId>
      <ContextName>sample string 4</ContextName>
      <Id>2cf45a82-b7a3-44be-b00f-0157b9b9431f</Id>
      <Name>sample string 2</Name>
    </UsedInItem>
  </UsedInItems>
</CampaignTemplateEditorDto>