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": "ecc7cabe-3712-4503-a625-df5db1e0dfb9",
"DataListId": "53c071d7-5aec-4a54-bdc9-c43ee44242e1",
"DataFileIds": [
"f0bf5954-7325-4c98-926b-eac2f0165a6d",
"d82d8abc-87f3-4b8d-83dc-d3cfd99b513c"
],
"RecordCount": 2,
"IsPlaced": true,
"ProductionComplete": true,
"Id": "1a847c99-c9b1-4412-b8fa-96667cb19833",
"CreationDateUtc": "2026-01-09T14:31:27.0006174+00:00",
"UserId": "3afafe7c-429f-4636-b41b-745553ba76e0",
"TenantId": "5cd2c7ed-9f6e-44d7-af03-d378564c2246",
"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-09T14:31:27.0006174+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">1a847c99-c9b1-4412-b8fa-96667cb19833</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">5cd2c7ed-9f6e-44d7-af03-d378564c2246</TenantId>
<UserId xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">3afafe7c-429f-4636-b41b-745553ba76e0</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>f0bf5954-7325-4c98-926b-eac2f0165a6d</d2p1:guid>
<d2p1:guid>d82d8abc-87f3-4b8d-83dc-d3cfd99b513c</d2p1:guid>
</DataFileIds>
<DataListId>53c071d7-5aec-4a54-bdc9-c43ee44242e1</DataListId>
<IsPlaced>true</IsPlaced>
<OrderId>ecc7cabe-3712-4503-a625-df5db1e0dfb9</OrderId>
<ProductionComplete>true</ProductionComplete>
<RecordCount>2</RecordCount>
</DataManagementCampaignDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.