POST api/site/updateDonation
Request Information
URI Parameters
None.
Body Parameters
DonationDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| DonationTypeId | integer |
None. |
|
| DonationName | string |
None. |
|
| Description | string |
None. |
|
| MinAmount | decimal number |
None. |
|
| MaxAmount | decimal number |
None. |
|
| PayOnline | boolean |
None. |
|
| Active | boolean |
None. |
|
| DonationType | DonationTypeDTO |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"DonationTypeId": 2,
"DonationName": "sample string 3",
"Description": "sample string 4",
"MinAmount": 5.0,
"MaxAmount": 6.0,
"PayOnline": true,
"Active": true,
"DonationType": {
"Id": 1,
"DonationTypeName": "sample string 2",
"Active": true
}
}
application/xml, text/xml
Sample:
<DonationDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HTCCLI.API.Models.ViewModel">
<Active>true</Active>
<Description>sample string 4</Description>
<DonationName>sample string 3</DonationName>
<DonationType>
<Active>true</Active>
<DonationTypeName>sample string 2</DonationTypeName>
<Id>1</Id>
</DonationType>
<DonationTypeId>2</DonationTypeId>
<Id>1</Id>
<MaxAmount>6</MaxAmount>
<MinAmount>5</MinAmount>
<PayOnline>true</PayOnline>
</DonationDTO>
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.