POST api/CampaignTypes

Request Information

URI Parameters

None.

Body Parameters

CampaignTypeDto
NameDescriptionTypeAdditional 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": "f76aa823-183e-48f5-8aa5-01bfabc573dd",
  "Name": "sample string 2",
  "ManagerGroupId": "c4d2ed29-5ada-4453-921c-ca628d15a1a5",
  "CampaignIds": [
    "4423c9bf-4e8b-41e1-ad5c-3c5ed9fc91d2",
    "63042d38-ba97-48d7-8700-ea5f315ecd1b"
  ],
  "CommunicationTemplates": [
    {
      "Id": "4cb42fbc-719b-47c7-970d-1b264a57df2e",
      "Name": "sample string 2",
      "ManagerGroupId": "63296632-c85e-4a70-84ce-594e90f8e271",
      "CommunicationType": 0,
      "LeadUpDuration": 4,
      "TemplateId": "4a591e3a-6255-4f00-9c70-a2ffc20322cd",
      "TemplateName": "sample string 5",
      "Subject": "sample string 6",
      "CampaignTypeId": "9bd2a6f9-b881-4088-ba43-fc941a846a40",
      "CommunicationIds": [
        "ea1610ab-a3b1-4442-8340-c703641648d1",
        "39de1a85-970c-4ae0-973c-584884613be4"
      ],
      "IncludeBooked": true,
      "IncludeAttended": true,
      "IncludePurchased": true
    },
    {
      "Id": "4cb42fbc-719b-47c7-970d-1b264a57df2e",
      "Name": "sample string 2",
      "ManagerGroupId": "63296632-c85e-4a70-84ce-594e90f8e271",
      "CommunicationType": 0,
      "LeadUpDuration": 4,
      "TemplateId": "4a591e3a-6255-4f00-9c70-a2ffc20322cd",
      "TemplateName": "sample string 5",
      "Subject": "sample string 6",
      "CampaignTypeId": "9bd2a6f9-b881-4088-ba43-fc941a846a40",
      "CommunicationIds": [
        "ea1610ab-a3b1-4442-8340-c703641648d1",
        "39de1a85-970c-4ae0-973c-584884613be4"
      ],
      "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>4423c9bf-4e8b-41e1-ad5c-3c5ed9fc91d2</d2p1:guid>
    <d2p1:guid>63042d38-ba97-48d7-8700-ea5f315ecd1b</d2p1:guid>
  </CampaignIds>
  <CommunicationTemplates>
    <CommunicationTemplateDto>
      <CampaignTypeId>9bd2a6f9-b881-4088-ba43-fc941a846a40</CampaignTypeId>
      <CommunicationIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:guid>ea1610ab-a3b1-4442-8340-c703641648d1</d4p1:guid>
        <d4p1:guid>39de1a85-970c-4ae0-973c-584884613be4</d4p1:guid>
      </CommunicationIds>
      <CommunicationType>DirectMail</CommunicationType>
      <Id>4cb42fbc-719b-47c7-970d-1b264a57df2e</Id>
      <IncludeAttended>true</IncludeAttended>
      <IncludeBooked>true</IncludeBooked>
      <IncludePurchased>true</IncludePurchased>
      <LeadUpDuration>4</LeadUpDuration>
      <ManagerGroupId>63296632-c85e-4a70-84ce-594e90f8e271</ManagerGroupId>
      <Name>sample string 2</Name>
      <Subject>sample string 6</Subject>
      <TemplateId>4a591e3a-6255-4f00-9c70-a2ffc20322cd</TemplateId>
      <TemplateName>sample string 5</TemplateName>
    </CommunicationTemplateDto>
    <CommunicationTemplateDto>
      <CampaignTypeId>9bd2a6f9-b881-4088-ba43-fc941a846a40</CampaignTypeId>
      <CommunicationIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:guid>ea1610ab-a3b1-4442-8340-c703641648d1</d4p1:guid>
        <d4p1:guid>39de1a85-970c-4ae0-973c-584884613be4</d4p1:guid>
      </CommunicationIds>
      <CommunicationType>DirectMail</CommunicationType>
      <Id>4cb42fbc-719b-47c7-970d-1b264a57df2e</Id>
      <IncludeAttended>true</IncludeAttended>
      <IncludeBooked>true</IncludeBooked>
      <IncludePurchased>true</IncludePurchased>
      <LeadUpDuration>4</LeadUpDuration>
      <ManagerGroupId>63296632-c85e-4a70-84ce-594e90f8e271</ManagerGroupId>
      <Name>sample string 2</Name>
      <Subject>sample string 6</Subject>
      <TemplateId>4a591e3a-6255-4f00-9c70-a2ffc20322cd</TemplateId>
      <TemplateName>sample string 5</TemplateName>
    </CommunicationTemplateDto>
  </CommunicationTemplates>
  <Id>f76aa823-183e-48f5-8aa5-01bfabc573dd</Id>
  <ManagerGroupId>c4d2ed29-5ada-4453-921c-ca628d15a1a5</ManagerGroupId>
  <Name>sample string 2</Name>
</CampaignTypeDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.