POST api/CampaignTypes
Request Information
URI Parameters
None.
Body Parameters
CampaignTypeDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| ManagerGroupId | globally unique identifier |
None. |
|
| CampaignIds | Collection of globally unique identifier |
None. |
|
| CommunicationTemplates | Collection of CommunicationTemplateDto |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "7f2f62df-c328-4880-b754-63aba018df45",
"Name": "sample string 2",
"ManagerGroupId": "86525935-e9b4-4465-8761-bceb10973820",
"CampaignIds": [
"f20c2d09-307b-4080-9590-dedbd3c423ef",
"f2831c7d-c615-43ec-b5cf-13b780579640"
],
"CommunicationTemplates": [
{
"Id": "f917ef8e-1673-47c0-a5d1-cd9f40de07a9",
"Name": "sample string 2",
"ManagerGroupId": "fbcf4f80-9773-4c32-be9f-6b65189c8b00",
"CommunicationType": 0,
"LeadUpDuration": 4,
"TemplateId": "da4e3c95-67b5-4120-bc86-c5e3cf12f287",
"TemplateName": "sample string 5",
"Subject": "sample string 6",
"CampaignTypeId": "18c0f2c4-8db7-4fc7-afa0-2406906e4693",
"CommunicationIds": [
"3ec97671-68f9-495c-8315-badcfdd4e6f3",
"136d9abf-a95d-4b6b-8e3a-1c03c2ef6788"
],
"IncludeBooked": true,
"IncludeAttended": true,
"IncludePurchased": true
},
{
"Id": "f917ef8e-1673-47c0-a5d1-cd9f40de07a9",
"Name": "sample string 2",
"ManagerGroupId": "fbcf4f80-9773-4c32-be9f-6b65189c8b00",
"CommunicationType": 0,
"LeadUpDuration": 4,
"TemplateId": "da4e3c95-67b5-4120-bc86-c5e3cf12f287",
"TemplateName": "sample string 5",
"Subject": "sample string 6",
"CampaignTypeId": "18c0f2c4-8db7-4fc7-afa0-2406906e4693",
"CommunicationIds": [
"3ec97671-68f9-495c-8315-badcfdd4e6f3",
"136d9abf-a95d-4b6b-8e3a-1c03c2ef6788"
],
"IncludeBooked": true,
"IncludeAttended": true,
"IncludePurchased": true
}
]
}
application/xml, text/xml
Sample:
<CampaignTypeDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.EventManagement.Models">
<CampaignIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>f20c2d09-307b-4080-9590-dedbd3c423ef</d2p1:guid>
<d2p1:guid>f2831c7d-c615-43ec-b5cf-13b780579640</d2p1:guid>
</CampaignIds>
<CommunicationTemplates>
<CommunicationTemplateDto>
<CampaignTypeId>18c0f2c4-8db7-4fc7-afa0-2406906e4693</CampaignTypeId>
<CommunicationIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:guid>3ec97671-68f9-495c-8315-badcfdd4e6f3</d4p1:guid>
<d4p1:guid>136d9abf-a95d-4b6b-8e3a-1c03c2ef6788</d4p1:guid>
</CommunicationIds>
<CommunicationType>DirectMail</CommunicationType>
<Id>f917ef8e-1673-47c0-a5d1-cd9f40de07a9</Id>
<IncludeAttended>true</IncludeAttended>
<IncludeBooked>true</IncludeBooked>
<IncludePurchased>true</IncludePurchased>
<LeadUpDuration>4</LeadUpDuration>
<ManagerGroupId>fbcf4f80-9773-4c32-be9f-6b65189c8b00</ManagerGroupId>
<Name>sample string 2</Name>
<Subject>sample string 6</Subject>
<TemplateId>da4e3c95-67b5-4120-bc86-c5e3cf12f287</TemplateId>
<TemplateName>sample string 5</TemplateName>
</CommunicationTemplateDto>
<CommunicationTemplateDto>
<CampaignTypeId>18c0f2c4-8db7-4fc7-afa0-2406906e4693</CampaignTypeId>
<CommunicationIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:guid>3ec97671-68f9-495c-8315-badcfdd4e6f3</d4p1:guid>
<d4p1:guid>136d9abf-a95d-4b6b-8e3a-1c03c2ef6788</d4p1:guid>
</CommunicationIds>
<CommunicationType>DirectMail</CommunicationType>
<Id>f917ef8e-1673-47c0-a5d1-cd9f40de07a9</Id>
<IncludeAttended>true</IncludeAttended>
<IncludeBooked>true</IncludeBooked>
<IncludePurchased>true</IncludePurchased>
<LeadUpDuration>4</LeadUpDuration>
<ManagerGroupId>fbcf4f80-9773-4c32-be9f-6b65189c8b00</ManagerGroupId>
<Name>sample string 2</Name>
<Subject>sample string 6</Subject>
<TemplateId>da4e3c95-67b5-4120-bc86-c5e3cf12f287</TemplateId>
<TemplateName>sample string 5</TemplateName>
</CommunicationTemplateDto>
</CommunicationTemplates>
<Id>7f2f62df-c328-4880-b754-63aba018df45</Id>
<ManagerGroupId>86525935-e9b4-4465-8761-bceb10973820</ManagerGroupId>
<Name>sample string 2</Name>
</CampaignTypeDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
None.