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": "854903f2-286c-4feb-a656-cc7d438adcbb",
"Name": "sample string 2",
"ManagerGroupId": "5caa5873-e143-48aa-81e4-8aadf9af7cb9",
"CampaignIds": [
"a0a7563f-1dde-4946-a878-feae8a9521c6",
"80c5239e-e273-48cc-b05d-3ad95d17333d"
],
"CommunicationTemplates": [
{
"Id": "fbe5b3bf-d24f-4486-9868-d0cac3f7b747",
"Name": "sample string 2",
"ManagerGroupId": "be594ac1-496d-454f-8cf2-92bf38a4504e",
"CommunicationType": 0,
"LeadUpDuration": 4,
"TemplateId": "51d5c00e-b062-4604-b138-c06a9cbe86b9",
"TemplateName": "sample string 5",
"Subject": "sample string 6",
"CampaignTypeId": "7595ce4d-fde3-462c-842b-eac2a607f2d4",
"CommunicationIds": [
"1e541471-bc1b-4c03-a329-58420a4a48fc",
"bc523fc9-798a-42db-aa5f-a8351bbab13a"
],
"IncludeBooked": true,
"IncludeAttended": true,
"IncludePurchased": true
},
{
"Id": "fbe5b3bf-d24f-4486-9868-d0cac3f7b747",
"Name": "sample string 2",
"ManagerGroupId": "be594ac1-496d-454f-8cf2-92bf38a4504e",
"CommunicationType": 0,
"LeadUpDuration": 4,
"TemplateId": "51d5c00e-b062-4604-b138-c06a9cbe86b9",
"TemplateName": "sample string 5",
"Subject": "sample string 6",
"CampaignTypeId": "7595ce4d-fde3-462c-842b-eac2a607f2d4",
"CommunicationIds": [
"1e541471-bc1b-4c03-a329-58420a4a48fc",
"bc523fc9-798a-42db-aa5f-a8351bbab13a"
],
"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>a0a7563f-1dde-4946-a878-feae8a9521c6</d2p1:guid>
<d2p1:guid>80c5239e-e273-48cc-b05d-3ad95d17333d</d2p1:guid>
</CampaignIds>
<CommunicationTemplates>
<CommunicationTemplateDto>
<CampaignTypeId>7595ce4d-fde3-462c-842b-eac2a607f2d4</CampaignTypeId>
<CommunicationIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:guid>1e541471-bc1b-4c03-a329-58420a4a48fc</d4p1:guid>
<d4p1:guid>bc523fc9-798a-42db-aa5f-a8351bbab13a</d4p1:guid>
</CommunicationIds>
<CommunicationType>DirectMail</CommunicationType>
<Id>fbe5b3bf-d24f-4486-9868-d0cac3f7b747</Id>
<IncludeAttended>true</IncludeAttended>
<IncludeBooked>true</IncludeBooked>
<IncludePurchased>true</IncludePurchased>
<LeadUpDuration>4</LeadUpDuration>
<ManagerGroupId>be594ac1-496d-454f-8cf2-92bf38a4504e</ManagerGroupId>
<Name>sample string 2</Name>
<Subject>sample string 6</Subject>
<TemplateId>51d5c00e-b062-4604-b138-c06a9cbe86b9</TemplateId>
<TemplateName>sample string 5</TemplateName>
</CommunicationTemplateDto>
<CommunicationTemplateDto>
<CampaignTypeId>7595ce4d-fde3-462c-842b-eac2a607f2d4</CampaignTypeId>
<CommunicationIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:guid>1e541471-bc1b-4c03-a329-58420a4a48fc</d4p1:guid>
<d4p1:guid>bc523fc9-798a-42db-aa5f-a8351bbab13a</d4p1:guid>
</CommunicationIds>
<CommunicationType>DirectMail</CommunicationType>
<Id>fbe5b3bf-d24f-4486-9868-d0cac3f7b747</Id>
<IncludeAttended>true</IncludeAttended>
<IncludeBooked>true</IncludeBooked>
<IncludePurchased>true</IncludePurchased>
<LeadUpDuration>4</LeadUpDuration>
<ManagerGroupId>be594ac1-496d-454f-8cf2-92bf38a4504e</ManagerGroupId>
<Name>sample string 2</Name>
<Subject>sample string 6</Subject>
<TemplateId>51d5c00e-b062-4604-b138-c06a9cbe86b9</TemplateId>
<TemplateName>sample string 5</TemplateName>
</CommunicationTemplateDto>
</CommunicationTemplates>
<Id>854903f2-286c-4feb-a656-cc7d438adcbb</Id>
<ManagerGroupId>5caa5873-e143-48aa-81e4-8aadf9af7cb9</ManagerGroupId>
<Name>sample string 2</Name>
</CampaignTypeDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
None.