PUT api/CampaignTypes/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
Required |
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": "456abb7e-632b-4b52-ba64-8c90042a31fe",
"Name": "sample string 2",
"ManagerGroupId": "0eaa2fef-0c18-4c29-87b4-0b69d6324337",
"CampaignIds": [
"c20cdd73-db6b-42e0-974f-87f7eacc7b66",
"1836eb3f-f2b3-4966-94e2-0ff725ca6a86"
],
"CommunicationTemplates": [
{
"Id": "4dbf8f7b-5bd8-43f4-a669-3c4c5f4458e6",
"Name": "sample string 2",
"ManagerGroupId": "57da171f-cdf9-442a-a7db-9377751edaaf",
"CommunicationType": 0,
"LeadUpDuration": 4,
"TemplateId": "18ffefe7-b4ce-4846-9759-444fa86b78d1",
"TemplateName": "sample string 5",
"Subject": "sample string 6",
"CampaignTypeId": "bdfe5201-338f-4391-aff8-569d3ae2ea35",
"CommunicationIds": [
"fcd5c42c-7100-40ea-ace8-b83dba1167c9",
"53d313e6-f95f-443f-a401-fa44e38bffbc"
],
"IncludeBooked": true,
"IncludeAttended": true,
"IncludePurchased": true
},
{
"Id": "4dbf8f7b-5bd8-43f4-a669-3c4c5f4458e6",
"Name": "sample string 2",
"ManagerGroupId": "57da171f-cdf9-442a-a7db-9377751edaaf",
"CommunicationType": 0,
"LeadUpDuration": 4,
"TemplateId": "18ffefe7-b4ce-4846-9759-444fa86b78d1",
"TemplateName": "sample string 5",
"Subject": "sample string 6",
"CampaignTypeId": "bdfe5201-338f-4391-aff8-569d3ae2ea35",
"CommunicationIds": [
"fcd5c42c-7100-40ea-ace8-b83dba1167c9",
"53d313e6-f95f-443f-a401-fa44e38bffbc"
],
"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>c20cdd73-db6b-42e0-974f-87f7eacc7b66</d2p1:guid>
<d2p1:guid>1836eb3f-f2b3-4966-94e2-0ff725ca6a86</d2p1:guid>
</CampaignIds>
<CommunicationTemplates>
<CommunicationTemplateDto>
<CampaignTypeId>bdfe5201-338f-4391-aff8-569d3ae2ea35</CampaignTypeId>
<CommunicationIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:guid>fcd5c42c-7100-40ea-ace8-b83dba1167c9</d4p1:guid>
<d4p1:guid>53d313e6-f95f-443f-a401-fa44e38bffbc</d4p1:guid>
</CommunicationIds>
<CommunicationType>DirectMail</CommunicationType>
<Id>4dbf8f7b-5bd8-43f4-a669-3c4c5f4458e6</Id>
<IncludeAttended>true</IncludeAttended>
<IncludeBooked>true</IncludeBooked>
<IncludePurchased>true</IncludePurchased>
<LeadUpDuration>4</LeadUpDuration>
<ManagerGroupId>57da171f-cdf9-442a-a7db-9377751edaaf</ManagerGroupId>
<Name>sample string 2</Name>
<Subject>sample string 6</Subject>
<TemplateId>18ffefe7-b4ce-4846-9759-444fa86b78d1</TemplateId>
<TemplateName>sample string 5</TemplateName>
</CommunicationTemplateDto>
<CommunicationTemplateDto>
<CampaignTypeId>bdfe5201-338f-4391-aff8-569d3ae2ea35</CampaignTypeId>
<CommunicationIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:guid>fcd5c42c-7100-40ea-ace8-b83dba1167c9</d4p1:guid>
<d4p1:guid>53d313e6-f95f-443f-a401-fa44e38bffbc</d4p1:guid>
</CommunicationIds>
<CommunicationType>DirectMail</CommunicationType>
<Id>4dbf8f7b-5bd8-43f4-a669-3c4c5f4458e6</Id>
<IncludeAttended>true</IncludeAttended>
<IncludeBooked>true</IncludeBooked>
<IncludePurchased>true</IncludePurchased>
<LeadUpDuration>4</LeadUpDuration>
<ManagerGroupId>57da171f-cdf9-442a-a7db-9377751edaaf</ManagerGroupId>
<Name>sample string 2</Name>
<Subject>sample string 6</Subject>
<TemplateId>18ffefe7-b4ce-4846-9759-444fa86b78d1</TemplateId>
<TemplateName>sample string 5</TemplateName>
</CommunicationTemplateDto>
</CommunicationTemplates>
<Id>456abb7e-632b-4b52-ba64-8c90042a31fe</Id>
<ManagerGroupId>0eaa2fef-0c18-4c29-87b4-0b69d6324337</ManagerGroupId>
<Name>sample string 2</Name>
</CampaignTypeDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.