PUT api/campaigns/{id}
Updates a campaign entity.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The id of the campaign to update. |
globally unique identifier |
Required |
Body Parameters
The campaign model to update 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": "6e7af1a3-8d37-4f66-b189-039cd9030277",
"DataListId": "8e8c3eb4-eda1-4741-b633-282867e18fbe",
"DataFileIds": [
"7109bdae-8812-4dc1-a1b9-c69a9362d162",
"74ef4073-4a64-4485-a2c5-c79048e85e0a"
],
"RecordCount": 2,
"IsPlaced": true,
"ProductionComplete": true,
"Id": "993b11ee-a454-4635-93ae-83ed20ca29bd",
"CreationDateUtc": "2026-01-10T12:31:22.3905461+00:00",
"UserId": "c9fdff31-78d8-49b3-a4ec-eb20f9592e5f",
"TenantId": "205cf54a-b069-459e-80dc-c493e5e3d42d",
"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:31:22.3905461+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">993b11ee-a454-4635-93ae-83ed20ca29bd</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">205cf54a-b069-459e-80dc-c493e5e3d42d</TenantId>
<UserId xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">c9fdff31-78d8-49b3-a4ec-eb20f9592e5f</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>7109bdae-8812-4dc1-a1b9-c69a9362d162</d2p1:guid>
<d2p1:guid>74ef4073-4a64-4485-a2c5-c79048e85e0a</d2p1:guid>
</DataFileIds>
<DataListId>8e8c3eb4-eda1-4741-b633-282867e18fbe</DataListId>
<IsPlaced>true</IsPlaced>
<OrderId>6e7af1a3-8d37-4f66-b189-039cd9030277</OrderId>
<ProductionComplete>true</ProductionComplete>
<RecordCount>2</RecordCount>
</DataManagementCampaignDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.