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": "3c43109c-13be-4025-b936-9e1373271e47",
"DataListId": "b7760bae-babc-4309-a814-72400eff0690",
"DataFileIds": [
"04203614-18c1-4e0f-9a62-be6a6c73afb0",
"2f7c238c-501a-4dd7-b23b-7fd61f023451"
],
"RecordCount": 2,
"IsPlaced": true,
"ProductionComplete": true,
"Id": "037f752b-6672-4637-a4c1-b51661d54c4e",
"CreationDateUtc": "2026-01-09T14:32:05.1302636+00:00",
"UserId": "4ac3a196-5112-4295-84c8-372e6bd650f7",
"TenantId": "bb3b765c-23e0-49b8-a614-0fd9e95d41bf",
"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:32:05.1302636+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">037f752b-6672-4637-a4c1-b51661d54c4e</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">bb3b765c-23e0-49b8-a614-0fd9e95d41bf</TenantId>
<UserId xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">4ac3a196-5112-4295-84c8-372e6bd650f7</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>04203614-18c1-4e0f-9a62-be6a6c73afb0</d2p1:guid>
<d2p1:guid>2f7c238c-501a-4dd7-b23b-7fd61f023451</d2p1:guid>
</DataFileIds>
<DataListId>b7760bae-babc-4309-a814-72400eff0690</DataListId>
<IsPlaced>true</IsPlaced>
<OrderId>3c43109c-13be-4025-b936-9e1373271e47</OrderId>
<ProductionComplete>true</ProductionComplete>
<RecordCount>2</RecordCount>
</DataManagementCampaignDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.