PUT api/Award/Update
Request Information
URI Parameters
None.
Body Parameters
AwardUpdateVM| Name | Description | Type | Additional information |
|---|---|---|---|
| AwardId | integer |
Required |
|
| BookId | integer |
Required |
|
| AwardName | string |
Required String length: inclusive between 0 and 100 |
|
| Code | string |
String length: inclusive between 0 and 10 |
|
| Amount | decimal number |
Required |
|
| Status | string |
Required Matching regular expression pattern: A|I |
|
| AwardRemarks | string |
String length: inclusive between 0 and 100 |
|
| UpdateUser | integer |
Required |
|
| UpdateIp | string |
Required String length: inclusive between 0 and 20 |
Request Formats
application/json, text/json
Sample:
{
"AwardId": 1,
"BookId": 2,
"AwardName": "sample string 3",
"Code": "sample string 4",
"Amount": 5.0,
"Status": "sample string 6",
"AwardRemarks": "sample string 7",
"UpdateUser": 8,
"UpdateIp": "sample string 9"
}
application/xml, text/xml
Sample:
<AwardUpdateVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models"> <Amount>5</Amount> <AwardId>1</AwardId> <AwardName>sample string 3</AwardName> <AwardRemarks>sample string 7</AwardRemarks> <BookId>2</BookId> <Code>sample string 4</Code> <Status>sample string 6</Status> <UpdateIp>sample string 9</UpdateIp> <UpdateUser>8</UpdateUser> </AwardUpdateVM>
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.