POST v1/CampaignTemplateEditor/TemplateData

Save template data

Request Information

URI Parameters

None.

Body Parameters

Template data

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": "f91468b7-6a66-4d93-9199-4a83384073c5",
  "Name": "sample string 1",
  "EmailSubjectLine": "sample string 2",
  "IsMarketing": true,
  "MergeIds": "sample string 3",
  "TemplateHtml": "sample string 4",
  "DateUpdated": "2024-11-21T10:02:12.1056627+00:00",
  "SystemDefined": true,
  "UsedInItems": [
    {
      "Id": "3e03e677-2404-4439-8ceb-0d8ba8a78e7b",
      "Name": "sample string 2",
      "ContextId": 3,
      "ContextName": "sample string 4"
    },
    {
      "Id": "3e03e677-2404-4439-8ceb-0d8ba8a78e7b",
      "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>2024-11-21T10:02:12.1056627+00:00</DateUpdated>
  <EmailSubjectLine>sample string 2</EmailSubjectLine>
  <Id>f91468b7-6a66-4d93-9199-4a83384073c5</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>3e03e677-2404-4439-8ceb-0d8ba8a78e7b</Id>
      <Name>sample string 2</Name>
    </UsedInItem>
    <UsedInItem>
      <ContextId>3</ContextId>
      <ContextName>sample string 4</ContextName>
      <Id>3e03e677-2404-4439-8ceb-0d8ba8a78e7b</Id>
      <Name>sample string 2</Name>
    </UsedInItem>
  </UsedInItems>
</CampaignTemplateEditorDto>

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'.

Response Information

Resource Description

Saved template

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": "3caa4155-8aae-405e-af76-b4c264e8b4c8",
  "Name": "sample string 1",
  "EmailSubjectLine": "sample string 2",
  "IsMarketing": true,
  "MergeIds": "sample string 3",
  "TemplateHtml": "sample string 4",
  "DateUpdated": "2024-11-21T10:02:12.1213018+00:00",
  "SystemDefined": true,
  "UsedInItems": [
    {
      "Id": "8e5b2571-a8aa-482e-b59c-52aaa1288355",
      "Name": "sample string 2",
      "ContextId": 3,
      "ContextName": "sample string 4"
    },
    {
      "Id": "8e5b2571-a8aa-482e-b59c-52aaa1288355",
      "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>2024-11-21T10:02:12.1213018+00:00</DateUpdated>
  <EmailSubjectLine>sample string 2</EmailSubjectLine>
  <Id>3caa4155-8aae-405e-af76-b4c264e8b4c8</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>8e5b2571-a8aa-482e-b59c-52aaa1288355</Id>
      <Name>sample string 2</Name>
    </UsedInItem>
    <UsedInItem>
      <ContextId>3</ContextId>
      <ContextName>sample string 4</ContextName>
      <Id>8e5b2571-a8aa-482e-b59c-52aaa1288355</Id>
      <Name>sample string 2</Name>
    </UsedInItem>
  </UsedInItems>
</CampaignTemplateEditorDto>