POST v1/CampaignTemplateEditor/TemplateData
Save template data
Request Information
URI Parameters
None.
Body Parameters
Template data
CampaignTemplateEditorDto| Name | Description | Type | Additional 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
{
"Id": "1e25545f-8a3c-4281-9c7b-ca68df62ffdb",
"Name": "sample string 1",
"EmailSubjectLine": "sample string 2",
"IsMarketing": true,
"MergeIds": "sample string 3",
"TemplateHtml": "sample string 4",
"DateUpdated": "2026-10-15T15:46:58.0930356+00:00",
"SystemDefined": true,
"UsedInItems": [
{
"Id": "d1440bc5-56fc-4d9f-aa79-2d662a1b040e",
"Name": "sample string 2",
"ContextId": 3,
"ContextName": "sample string 4"
},
{
"Id": "d1440bc5-56fc-4d9f-aa79-2d662a1b040e",
"Name": "sample string 2",
"ContextId": 3,
"ContextName": "sample string 4"
}
],
"CampaignContext": "sample string 7"
}
application/x-www-form-urlencoded
Form URL encoded content is supported for requests. The form keys are the property names shown in the JSON sample, nested as Property.Child and Collection[0].Property.
application/xml, text/xml
<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-10-15T15:46:58.0930356+00:00</DateUpdated>
<EmailSubjectLine>sample string 2</EmailSubjectLine>
<Id>1e25545f-8a3c-4281-9c7b-ca68df62ffdb</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>d1440bc5-56fc-4d9f-aa79-2d662a1b040e</Id>
<Name>sample string 2</Name>
</UsedInItem>
<UsedInItem>
<ContextId>3</ContextId>
<ContextName>sample string 4</ContextName>
<Id>d1440bc5-56fc-4d9f-aa79-2d662a1b040e</Id>
<Name>sample string 2</Name>
</UsedInItem>
</UsedInItems>
</CampaignTemplateEditorDto>
Response Information
Resource Description
Saved template
CampaignTemplateEditorDto| Name | Description | Type | Additional 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
{
"Id": "1a355cc3-3cd6-46cd-940d-7ba0c8e7b3c3",
"Name": "sample string 1",
"EmailSubjectLine": "sample string 2",
"IsMarketing": true,
"MergeIds": "sample string 3",
"TemplateHtml": "sample string 4",
"DateUpdated": "2026-10-15T15:46:58.1086644+00:00",
"SystemDefined": true,
"UsedInItems": [
{
"Id": "fdd8722b-be7b-46c9-8fe0-e4f81223f6a0",
"Name": "sample string 2",
"ContextId": 3,
"ContextName": "sample string 4"
},
{
"Id": "fdd8722b-be7b-46c9-8fe0-e4f81223f6a0",
"Name": "sample string 2",
"ContextId": 3,
"ContextName": "sample string 4"
}
],
"CampaignContext": "sample string 7"
}
application/xml, text/xml
<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-10-15T15:46:58.1086644+00:00</DateUpdated>
<EmailSubjectLine>sample string 2</EmailSubjectLine>
<Id>1a355cc3-3cd6-46cd-940d-7ba0c8e7b3c3</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>fdd8722b-be7b-46c9-8fe0-e4f81223f6a0</Id>
<Name>sample string 2</Name>
</UsedInItem>
<UsedInItem>
<ContextId>3</ContextId>
<ContextName>sample string 4</ContextName>
<Id>fdd8722b-be7b-46c9-8fe0-e4f81223f6a0</Id>
<Name>sample string 2</Name>
</UsedInItem>
</UsedInItems>
</CampaignTemplateEditorDto>