PUT api/v1/code/donationcode/{code}

Update Donation code

Request Information

URI Parameters

NameDescriptionTypeAdditional information
code

Code object that needs to be updated

string

Required

Body Parameters

Donation code object that needs to be updated

DonationCode
NameDescriptionTypeAdditional 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": "2025-09-04T15:12:15.172",
  "InHome": "2025-09-04T15:12:15.172",
  "LastUpdated": "2025-09-04T15:12:15.172",
  "LastUpdatedBy": "sample string 9",
  "Created": "2025-09-04T15:12:15.172",
  "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>2025-09-04T15:12:15.1729269+00:00</Created>
  <CreatedBy>sample string 10</CreatedBy>
  <Description>sample string 2</Description>
  <DonationCodeGroup>sample string 6</DonationCodeGroup>
  <EventBegin>2025-09-04T15:12:15.1729269+00:00</EventBegin>
  <Fund>sample string 4</Fund>
  <InHome>2025-09-04T15:12:15.1729269+00:00</InHome>
  <LastUpdated>2025-09-04T15:12:15.1729269+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

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.