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": "f27f2f88-5793-4964-a45f-7e33413b1026",
"Name": "sample string 2",
"ManagerGroupId": "32fd891a-4a46-4abf-b053-59a87fd4f771",
"CampaignIds": [
"a472e5a8-f2e5-4340-b684-ab1a05bb3f4c",
"d9524305-2524-467d-8ece-af3a756cb3c3"
],
"CommunicationTemplates": [
{
"Id": "e06d019e-7646-4f6d-b52f-ee948f77c8ef",
"Name": "sample string 2",
"ManagerGroupId": "0ba51f89-8873-427e-baac-890c3c29e859",
"CommunicationType": 0,
"LeadUpDuration": 4,
"TemplateId": "085b9c8c-a0ba-42ea-972b-3b1d2d51e751",
"TemplateName": "sample string 5",
"Subject": "sample string 6",
"CampaignTypeId": "3dd75db1-cf19-4eed-8e7e-fef2ba9330d0",
"CommunicationIds": [
"0e2d2577-1d04-4eea-a4ff-605944cd9c66",
"ebebda36-ca2d-4818-b9fb-9806e23ec870"
],
"IncludeBooked": true,
"IncludeAttended": true,
"IncludePurchased": true
},
{
"Id": "e06d019e-7646-4f6d-b52f-ee948f77c8ef",
"Name": "sample string 2",
"ManagerGroupId": "0ba51f89-8873-427e-baac-890c3c29e859",
"CommunicationType": 0,
"LeadUpDuration": 4,
"TemplateId": "085b9c8c-a0ba-42ea-972b-3b1d2d51e751",
"TemplateName": "sample string 5",
"Subject": "sample string 6",
"CampaignTypeId": "3dd75db1-cf19-4eed-8e7e-fef2ba9330d0",
"CommunicationIds": [
"0e2d2577-1d04-4eea-a4ff-605944cd9c66",
"ebebda36-ca2d-4818-b9fb-9806e23ec870"
],
"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>a472e5a8-f2e5-4340-b684-ab1a05bb3f4c</d2p1:guid>
<d2p1:guid>d9524305-2524-467d-8ece-af3a756cb3c3</d2p1:guid>
</CampaignIds>
<CommunicationTemplates>
<CommunicationTemplateDto>
<CampaignTypeId>3dd75db1-cf19-4eed-8e7e-fef2ba9330d0</CampaignTypeId>
<CommunicationIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:guid>0e2d2577-1d04-4eea-a4ff-605944cd9c66</d4p1:guid>
<d4p1:guid>ebebda36-ca2d-4818-b9fb-9806e23ec870</d4p1:guid>
</CommunicationIds>
<CommunicationType>DirectMail</CommunicationType>
<Id>e06d019e-7646-4f6d-b52f-ee948f77c8ef</Id>
<IncludeAttended>true</IncludeAttended>
<IncludeBooked>true</IncludeBooked>
<IncludePurchased>true</IncludePurchased>
<LeadUpDuration>4</LeadUpDuration>
<ManagerGroupId>0ba51f89-8873-427e-baac-890c3c29e859</ManagerGroupId>
<Name>sample string 2</Name>
<Subject>sample string 6</Subject>
<TemplateId>085b9c8c-a0ba-42ea-972b-3b1d2d51e751</TemplateId>
<TemplateName>sample string 5</TemplateName>
</CommunicationTemplateDto>
<CommunicationTemplateDto>
<CampaignTypeId>3dd75db1-cf19-4eed-8e7e-fef2ba9330d0</CampaignTypeId>
<CommunicationIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:guid>0e2d2577-1d04-4eea-a4ff-605944cd9c66</d4p1:guid>
<d4p1:guid>ebebda36-ca2d-4818-b9fb-9806e23ec870</d4p1:guid>
</CommunicationIds>
<CommunicationType>DirectMail</CommunicationType>
<Id>e06d019e-7646-4f6d-b52f-ee948f77c8ef</Id>
<IncludeAttended>true</IncludeAttended>
<IncludeBooked>true</IncludeBooked>
<IncludePurchased>true</IncludePurchased>
<LeadUpDuration>4</LeadUpDuration>
<ManagerGroupId>0ba51f89-8873-427e-baac-890c3c29e859</ManagerGroupId>
<Name>sample string 2</Name>
<Subject>sample string 6</Subject>
<TemplateId>085b9c8c-a0ba-42ea-972b-3b1d2d51e751</TemplateId>
<TemplateName>sample string 5</TemplateName>
</CommunicationTemplateDto>
</CommunicationTemplates>
<Id>f27f2f88-5793-4964-a45f-7e33413b1026</Id>
<ManagerGroupId>32fd891a-4a46-4abf-b053-59a87fd4f771</ManagerGroupId>
<Name>sample string 2</Name>
</CampaignTypeDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.