PUT api/campaigns/{id}
Updates a campaign.
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.
PayCampaignDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
None. |
|
| PublicId | string |
None. |
|
| ModifiedDateUtc | date |
None. |
|
| UserJourney | string |
None. |
|
| ServiceType | ServiceTypeDto |
None. |
|
| Quantity | integer |
None. |
|
| ApprovalResponses | Collection of ApprovalResponseDto |
None. |
|
| SupplierId | globally unique identifier |
None. |
|
| OrderId | globally unique identifier |
None. |
|
| CampaignProperties | Collection of PayCampaignPropertyDto |
None. |
|
| Voucher | VoucherDto |
None. |
|
| OrderStatusChanges | Collection of StatusChangeDto |
None. |
|
| OrderStatus | string |
None. |
|
| IsTemporary | boolean |
None. |
|
| RB_ArtWorkToken | string |
None. |
|
| PR_Key | string |
None. |
|
| PR_UDPRN | string |
None. |
|
| Ext_TemplateId | integer |
None. |
|
| Ext_ArtworkId | integer |
None. |
|
| Ext_ResourceId | integer |
None. |
|
| FileLocation | string |
None. |
|
| OrganisationId | globally unique identifier |
None. |
|
| OrganisationName | string |
None. |
|
| TemplateName | string |
None. |
|
| UserName | string |
None. |
|
| Ext_MailerType | string |
None. |
|
| Envelope | string |
None. |
|
| Variant | string |
None. |
|
| ApprovalGroupId | globally unique identifier |
None. |
|
| DeliveryDate | date |
None. |
|
| PaperSize | string |
None. |
|
| CentralMailerCampaignId | globally unique identifier |
None. |
|
| OrderProductionCompletedDate | date |
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:
{
"Name": "sample string 1",
"PublicId": "sample string 2",
"ModifiedDateUtc": "2026-01-21T09:53:04.7393014+00:00",
"UserJourney": "sample string 3",
"ServiceType": 0,
"Quantity": 4,
"ApprovalResponses": [
{
"Id": "1ffe6221-1fea-4612-8f3d-9e3e68ae3bab",
"CreationDate": "2026-01-21T09:53:04.7393014+00:00",
"ApproverUserId": "cb4142ac-1bf6-4b7a-9391-8f6c86c5d068",
"Note": "sample string 4",
"Status": 0,
"CampaignId": "7e558e32-28a1-45c1-a350-ebac82c91daa"
},
{
"Id": "1ffe6221-1fea-4612-8f3d-9e3e68ae3bab",
"CreationDate": "2026-01-21T09:53:04.7393014+00:00",
"ApproverUserId": "cb4142ac-1bf6-4b7a-9391-8f6c86c5d068",
"Note": "sample string 4",
"Status": 0,
"CampaignId": "7e558e32-28a1-45c1-a350-ebac82c91daa"
}
],
"SupplierId": "f7151517-dd01-40c0-b3ce-6ed1cdd8ee05",
"OrderId": "3dd2b2d0-7bbe-4ed9-bae4-a3e7b7713ff4",
"CampaignProperties": [
{
"Id": "21dd15fe-c1b1-49de-a718-10868cba6ad0",
"CampaignId": "d1aa97d4-3bd8-42da-ac22-000f07d3d20e",
"Name": "sample string 3",
"Value": "sample string 4"
},
{
"Id": "21dd15fe-c1b1-49de-a718-10868cba6ad0",
"CampaignId": "d1aa97d4-3bd8-42da-ac22-000f07d3d20e",
"Name": "sample string 3",
"Value": "sample string 4"
}
],
"Voucher": {
"Id": 1,
"Description": "sample string 2",
"VoucherCode": "sample string 3",
"TenantId": "sample string 4",
"StartDate": "2026-01-21T09:53:04.7393014+00:00",
"ExpiryDate": "2026-01-21T09:53:04.7393014+00:00",
"Cancelled": true,
"IsPercentageDiscount": true,
"Entitlement": 7.0,
"MinSpend": 1.0,
"MaxSpend": 1.0,
"MaxDiscount": 1.0,
"ForAllUsers": true,
"Deleted": true,
"VoucherUsers": [
{
"UserId": "76722e85-8b28-432d-ab95-86ed7d66e764",
"SingleUse": true,
"ApplyAutomatically": true
},
{
"UserId": "76722e85-8b28-432d-ab95-86ed7d66e764",
"SingleUse": true,
"ApplyAutomatically": true
}
],
"MinimumQuantity": 1,
"VoucherProductType": "sample string 10",
"NewCustomerOnly": true,
"VoucherProperties": [
{
"Id": "cd4d1667-f75c-4de1-840c-32ce2ca436cf",
"CreationDateUtc": "2026-01-21T09:53:04.7393014+00:00",
"VoucherId": 3,
"Name": "sample string 4",
"Value": "sample string 5",
"Type": 0
},
{
"Id": "cd4d1667-f75c-4de1-840c-32ce2ca436cf",
"CreationDateUtc": "2026-01-21T09:53:04.7393014+00:00",
"VoucherId": 3,
"Name": "sample string 4",
"Value": "sample string 5",
"Type": 0
}
]
},
"OrderStatusChanges": [
{
"Id": 1,
"Status": "sample string 2",
"ChangeDateUtc": "2026-01-21T09:53:04.7393014+00:00",
"Description": "sample string 4",
"UserId": "bf4772a4-458f-48e0-b47f-cb53ec5c4e17"
},
{
"Id": 1,
"Status": "sample string 2",
"ChangeDateUtc": "2026-01-21T09:53:04.7393014+00:00",
"Description": "sample string 4",
"UserId": "bf4772a4-458f-48e0-b47f-cb53ec5c4e17"
}
],
"OrderStatus": "sample string 2",
"IsTemporary": true,
"RB_ArtWorkToken": "sample string 7",
"PR_Key": "sample string 8",
"PR_UDPRN": "sample string 9",
"Ext_TemplateId": 1,
"Ext_ArtworkId": 1,
"Ext_ResourceId": 1,
"FileLocation": "sample string 10",
"OrganisationId": "5c8683b2-67d1-4f30-b894-70c955d9206f",
"OrganisationName": "sample string 11",
"TemplateName": "sample string 12",
"UserName": "sample string 13",
"Ext_MailerType": "sample string 14",
"Envelope": "sample string 15",
"Variant": "sample string 16",
"ApprovalGroupId": "253fe9d0-34e9-4471-9d2a-d7dcd6148cad",
"DeliveryDate": "2026-01-21T09:53:04.7393014+00:00",
"PaperSize": "sample string 17",
"CentralMailerCampaignId": "10974c0a-232f-46d2-8662-45675dc842e7",
"OrderProductionCompletedDate": null,
"Id": "a5908406-e504-4b3b-8932-4f4cf2a11d83",
"CreationDateUtc": "2026-01-21T09:53:04.7393014+00:00",
"UserId": "799f379b-f945-409d-90e3-94d9fa1d523a",
"TenantId": "a0ae30c2-42c9-4e40-84be-3d7ba7cd16b4",
"SubtotalExVat": 22.0,
"SubtotalIncVat": 23.0,
"DiscountedTotalExVat": 24.0,
"DiscountedTotalIncVat": 25.0,
"VatRateApplied": 26.0
}
application/xml, text/xml
Sample:
<PayCampaignDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Pay.Models">
<CreationDateUtc xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">2026-01-21T09:53:04.7393014+00:00</CreationDateUtc>
<DiscountedTotalExVat xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">24</DiscountedTotalExVat>
<DiscountedTotalIncVat xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">25</DiscountedTotalIncVat>
<Id xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">a5908406-e504-4b3b-8932-4f4cf2a11d83</Id>
<SubtotalExVat xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">22</SubtotalExVat>
<SubtotalIncVat xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">23</SubtotalIncVat>
<TenantId xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">a0ae30c2-42c9-4e40-84be-3d7ba7cd16b4</TenantId>
<UserId xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">799f379b-f945-409d-90e3-94d9fa1d523a</UserId>
<VatRateApplied xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">26</VatRateApplied>
<ApprovalGroupId>253fe9d0-34e9-4471-9d2a-d7dcd6148cad</ApprovalGroupId>
<ApprovalResponses>
<ApprovalResponseDto>
<ApproverUserId>cb4142ac-1bf6-4b7a-9391-8f6c86c5d068</ApproverUserId>
<CampaignId>7e558e32-28a1-45c1-a350-ebac82c91daa</CampaignId>
<CreationDate>2026-01-21T09:53:04.7393014+00:00</CreationDate>
<Id>1ffe6221-1fea-4612-8f3d-9e3e68ae3bab</Id>
<Note>sample string 4</Note>
<Status>Approved</Status>
</ApprovalResponseDto>
<ApprovalResponseDto>
<ApproverUserId>cb4142ac-1bf6-4b7a-9391-8f6c86c5d068</ApproverUserId>
<CampaignId>7e558e32-28a1-45c1-a350-ebac82c91daa</CampaignId>
<CreationDate>2026-01-21T09:53:04.7393014+00:00</CreationDate>
<Id>1ffe6221-1fea-4612-8f3d-9e3e68ae3bab</Id>
<Note>sample string 4</Note>
<Status>Approved</Status>
</ApprovalResponseDto>
</ApprovalResponses>
<CampaignProperties>
<PayCampaignPropertyDto>
<CampaignId>d1aa97d4-3bd8-42da-ac22-000f07d3d20e</CampaignId>
<Id>21dd15fe-c1b1-49de-a718-10868cba6ad0</Id>
<Name>sample string 3</Name>
<Value>sample string 4</Value>
</PayCampaignPropertyDto>
<PayCampaignPropertyDto>
<CampaignId>d1aa97d4-3bd8-42da-ac22-000f07d3d20e</CampaignId>
<Id>21dd15fe-c1b1-49de-a718-10868cba6ad0</Id>
<Name>sample string 3</Name>
<Value>sample string 4</Value>
</PayCampaignPropertyDto>
</CampaignProperties>
<CentralMailerCampaignId>10974c0a-232f-46d2-8662-45675dc842e7</CentralMailerCampaignId>
<DeliveryDate>2026-01-21T09:53:04.7393014+00:00</DeliveryDate>
<Envelope>sample string 15</Envelope>
<Ext_ArtworkId>1</Ext_ArtworkId>
<Ext_MailerType>sample string 14</Ext_MailerType>
<Ext_ResourceId>1</Ext_ResourceId>
<Ext_TemplateId>1</Ext_TemplateId>
<FileLocation>sample string 10</FileLocation>
<IsTemporary>true</IsTemporary>
<ModifiedDateUtc>2026-01-21T09:53:04.7393014+00:00</ModifiedDateUtc>
<Name>sample string 1</Name>
<OrderId>3dd2b2d0-7bbe-4ed9-bae4-a3e7b7713ff4</OrderId>
<OrderStatusChanges>
<StatusChangeDto>
<ChangeDateUtc>2026-01-21T09:53:04.7393014+00:00</ChangeDateUtc>
<Description>sample string 4</Description>
<Id>1</Id>
<Status>sample string 2</Status>
<UserId>bf4772a4-458f-48e0-b47f-cb53ec5c4e17</UserId>
</StatusChangeDto>
<StatusChangeDto>
<ChangeDateUtc>2026-01-21T09:53:04.7393014+00:00</ChangeDateUtc>
<Description>sample string 4</Description>
<Id>1</Id>
<Status>sample string 2</Status>
<UserId>bf4772a4-458f-48e0-b47f-cb53ec5c4e17</UserId>
</StatusChangeDto>
</OrderStatusChanges>
<OrganisationId>5c8683b2-67d1-4f30-b894-70c955d9206f</OrganisationId>
<OrganisationName>sample string 11</OrganisationName>
<PR_Key>sample string 8</PR_Key>
<PR_UDPRN>sample string 9</PR_UDPRN>
<PaperSize>sample string 17</PaperSize>
<PublicId>sample string 2</PublicId>
<Quantity>4</Quantity>
<RB_ArtWorkToken>sample string 7</RB_ArtWorkToken>
<ServiceType>DesignPrintAndDistribution</ServiceType>
<SupplierId>f7151517-dd01-40c0-b3ce-6ed1cdd8ee05</SupplierId>
<TemplateName>sample string 12</TemplateName>
<UserJourney>sample string 3</UserJourney>
<UserName>sample string 13</UserName>
<Variant>sample string 16</Variant>
<Voucher>
<Cancelled>true</Cancelled>
<Deleted>true</Deleted>
<Description>sample string 2</Description>
<Entitlement>7</Entitlement>
<ExpiryDate>2026-01-21T09:53:04.7393014+00:00</ExpiryDate>
<ForAllUsers>true</ForAllUsers>
<Id>1</Id>
<IsPercentageDiscount>true</IsPercentageDiscount>
<MaxDiscount>1</MaxDiscount>
<MaxSpend>1</MaxSpend>
<MinSpend>1</MinSpend>
<MinimumQuantity>1</MinimumQuantity>
<NewCustomerOnly>true</NewCustomerOnly>
<StartDate>2026-01-21T09:53:04.7393014+00:00</StartDate>
<TenantId>sample string 4</TenantId>
<VoucherCode>sample string 3</VoucherCode>
<VoucherProductType>sample string 10</VoucherProductType>
<VoucherProperties>
<VoucherPropertyDto>
<CreationDateUtc>2026-01-21T09:53:04.7393014+00:00</CreationDateUtc>
<Id>cd4d1667-f75c-4de1-840c-32ce2ca436cf</Id>
<Name>sample string 4</Name>
<Type>PrintingOptions</Type>
<Value>sample string 5</Value>
<VoucherId>3</VoucherId>
</VoucherPropertyDto>
<VoucherPropertyDto>
<CreationDateUtc>2026-01-21T09:53:04.7393014+00:00</CreationDateUtc>
<Id>cd4d1667-f75c-4de1-840c-32ce2ca436cf</Id>
<Name>sample string 4</Name>
<Type>PrintingOptions</Type>
<Value>sample string 5</Value>
<VoucherId>3</VoucherId>
</VoucherPropertyDto>
</VoucherProperties>
<VoucherUsers>
<VoucherUserDto>
<ApplyAutomatically>true</ApplyAutomatically>
<SingleUse>true</SingleUse>
<UserId>76722e85-8b28-432d-ab95-86ed7d66e764</UserId>
</VoucherUserDto>
<VoucherUserDto>
<ApplyAutomatically>true</ApplyAutomatically>
<SingleUse>true</SingleUse>
<UserId>76722e85-8b28-432d-ab95-86ed7d66e764</UserId>
</VoucherUserDto>
</VoucherUsers>
</Voucher>
</PayCampaignDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.