PUT api/v1/code/donationcode/{code}
Update Donation code
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| code |
Code object that needs to be updated |
string |
Required |
Body Parameters
Donation code object that needs to be updated
DonationCode| Name | Description | Type | Additional information |
|---|---|---|---|
| Code | string |
Required String length: inclusive between 0 and 20 |
|
| Description | string |
Required String length: inclusive between 0 and 50 |
|
| LetterStandard | string |
String length: inclusive between 0 and 20 |
|
| Fund | string |
String length: inclusive between 0 and 20 |
|
| Theme | string |
String length: inclusive between 0 and 20 |
|
| DonationCodeGroup | string |
String length: inclusive between 0 and 20 |
|
| SubGroup | string |
String length: inclusive between 0 and 20 |
|
| Type | string |
String length: inclusive between 0 and 20 |
|
| EventBegin | date |
None. |
|
| InHome | date |
None. |
|
| LastUpdated | date |
None. |
|
| LastUpdatedBy | string |
String length: inclusive between 0 and 200 |
|
| Created | date |
None. |
|
| CreatedBy | string |
String length: inclusive between 0 and 200 |
Request Formats
application/json, text/json
Sample:
{
"Code": "sample string 1",
"Description": "sample string 2",
"LetterStandard": "sample string 3",
"Fund": "sample string 4",
"Theme": "sample string 5",
"DonationCodeGroup": "sample string 6",
"SubGroup": "sample string 7",
"Type": "sample string 8",
"EventBegin": "2026-02-04T01:56:16.970",
"InHome": "2026-02-04T01:56:16.970",
"LastUpdated": "2026-02-04T01:56:16.970",
"LastUpdatedBy": "sample string 9",
"Created": "2026-02-04T01:56:16.970",
"CreatedBy": "sample string 10"
}
application/xml, text/xml
Sample:
<DonationCode xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DPCSWS.Models"> <Code>sample string 1</Code> <Created>2026-02-04T01:56:16.9706019+00:00</Created> <CreatedBy>sample string 10</CreatedBy> <Description>sample string 2</Description> <DonationCodeGroup>sample string 6</DonationCodeGroup> <EventBegin>2026-02-04T01:56:16.9706019+00:00</EventBegin> <Fund>sample string 4</Fund> <InHome>2026-02-04T01:56:16.9706019+00:00</InHome> <LastUpdated>2026-02-04T01:56:16.9706019+00:00</LastUpdated> <LastUpdatedBy>sample string 9</LastUpdatedBy> <LetterStandard>sample string 3</LetterStandard> <SubGroup>sample string 7</SubGroup> <Theme>sample string 5</Theme> <Type>sample string 8</Type> </DonationCode>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.