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": "5eaf6b53-41e6-4a83-8395-f4e0b81cee99",
"Name": "sample string 1",
"EmailSubjectLine": "sample string 2",
"IsMarketing": true,
"MergeIds": "sample string 3",
"TemplateHtml": "sample string 4",
"DateUpdated": "2026-11-12T16:38:49.8957921+00:00",
"SystemDefined": true,
"UsedInItems": [
{
"Id": "60561b36-fd89-4da7-86f6-09721090cbfd",
"Name": "sample string 2",
"ContextId": 3,
"ContextName": "sample string 4"
},
{
"Id": "60561b36-fd89-4da7-86f6-09721090cbfd",
"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-11-12T16:38:49.8957921+00:00</DateUpdated>
<EmailSubjectLine>sample string 2</EmailSubjectLine>
<Id>5eaf6b53-41e6-4a83-8395-f4e0b81cee99</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>60561b36-fd89-4da7-86f6-09721090cbfd</Id>
<Name>sample string 2</Name>
</UsedInItem>
<UsedInItem>
<ContextId>3</ContextId>
<ContextName>sample string 4</ContextName>
<Id>60561b36-fd89-4da7-86f6-09721090cbfd</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": "26795bce-be19-42f7-9546-02bfae0b0ce5",
"Name": "sample string 1",
"EmailSubjectLine": "sample string 2",
"IsMarketing": true,
"MergeIds": "sample string 3",
"TemplateHtml": "sample string 4",
"DateUpdated": "2026-11-12T16:38:49.9082212+00:00",
"SystemDefined": true,
"UsedInItems": [
{
"Id": "c5e5616d-325a-48bc-800a-b1605b8b3c4e",
"Name": "sample string 2",
"ContextId": 3,
"ContextName": "sample string 4"
},
{
"Id": "c5e5616d-325a-48bc-800a-b1605b8b3c4e",
"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-11-12T16:38:49.9082212+00:00</DateUpdated>
<EmailSubjectLine>sample string 2</EmailSubjectLine>
<Id>26795bce-be19-42f7-9546-02bfae0b0ce5</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>c5e5616d-325a-48bc-800a-b1605b8b3c4e</Id>
<Name>sample string 2</Name>
</UsedInItem>
<UsedInItem>
<ContextId>3</ContextId>
<ContextName>sample string 4</ContextName>
<Id>c5e5616d-325a-48bc-800a-b1605b8b3c4e</Id>
<Name>sample string 2</Name>
</UsedInItem>
</UsedInItems>
</CampaignTemplateEditorDto>