POST api/campaigns
Creates a campaign entity.
Request Information
URI Parameters
None.
Body Parameters
The campaign model to create with.
DataManagementCampaignDto| Name | Description | Type | Additional information |
|---|---|---|---|
| OrderId | globally unique identifier |
None. |
|
| DataListId | globally unique identifier |
None. |
|
| DataFileIds | Collection of globally unique identifier |
None. |
|
| RecordCount | integer |
None. |
|
| IsPlaced | boolean |
None. |
|
| ProductionComplete | boolean |
None. |
|
| Id | globally unique identifier |
None. |
|
| CreationDateUtc | date |
None. |
|
| UserId | globally unique identifier |
None. |
|
| TenantId | globally unique identifier |
None. |
|
| SubtotalExVat | decimal number |
None. |
|
| SubtotalIncVat | decimal number |
None. |
|
| DiscountedTotalExVat | decimal number |
None. |
|
| DiscountedTotalIncVat | decimal number |
None. |
|
| VatRateApplied | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"OrderId": "5ec43121-4131-47a2-bbd5-8946a7f2a482",
"DataListId": "b49630fc-c5c5-4bc9-be0c-b2a483151ee5",
"DataFileIds": [
"1cab7fcd-cbde-46d6-b422-079e12353135",
"8c726d72-b0b3-49f0-ad4b-19015dca6733"
],
"RecordCount": 2,
"IsPlaced": true,
"ProductionComplete": true,
"Id": "f777c322-1aa5-497b-8044-489aa9fa9e99",
"CreationDateUtc": "2026-01-10T12:29:39.6752846+00:00",
"UserId": "d0a90a77-31f2-4bab-b677-c854d7f1e971",
"TenantId": "076d97d4-8617-4613-b4a8-d1f9fac1c74a",
"SubtotalExVat": 9.0,
"SubtotalIncVat": 10.0,
"DiscountedTotalExVat": 11.0,
"DiscountedTotalIncVat": 12.0,
"VatRateApplied": 13.0
}
application/xml, text/xml
Sample:
<DataManagementCampaignDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.DataManagement.Models">
<CreationDateUtc xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">2026-01-10T12:29:39.6752846+00:00</CreationDateUtc>
<DiscountedTotalExVat xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">11</DiscountedTotalExVat>
<DiscountedTotalIncVat xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">12</DiscountedTotalIncVat>
<Id xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">f777c322-1aa5-497b-8044-489aa9fa9e99</Id>
<SubtotalExVat xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">9</SubtotalExVat>
<SubtotalIncVat xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">10</SubtotalIncVat>
<TenantId xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">076d97d4-8617-4613-b4a8-d1f9fac1c74a</TenantId>
<UserId xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">d0a90a77-31f2-4bab-b677-c854d7f1e971</UserId>
<VatRateApplied xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">13</VatRateApplied>
<DataFileIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>1cab7fcd-cbde-46d6-b422-079e12353135</d2p1:guid>
<d2p1:guid>8c726d72-b0b3-49f0-ad4b-19015dca6733</d2p1:guid>
</DataFileIds>
<DataListId>b49630fc-c5c5-4bc9-be0c-b2a483151ee5</DataListId>
<IsPlaced>true</IsPlaced>
<OrderId>5ec43121-4131-47a2-bbd5-8946a7f2a482</OrderId>
<ProductionComplete>true</ProductionComplete>
<RecordCount>2</RecordCount>
</DataManagementCampaignDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.