POST api/AwardSponsor/Save
Request Information
URI Parameters
None.
Body Parameters
AwardSponsorSaveVM| Name | Description | Type | Additional information |
|---|---|---|---|
| BookId | integer |
Required |
|
| Prefix | PrefixLookup |
None. |
|
| SponsorName | string |
Required String length: inclusive between 0 and 100 |
|
| Code | string |
String length: inclusive between 0 and 10 |
|
| SponsorAddress | string |
String length: inclusive between 0 and 400 |
|
| ContactPerson | string |
String length: inclusive between 0 and 50 |
|
| ContactNumber | string |
String length: inclusive between 0 and 50 |
|
| Status | string |
Required Matching regular expression pattern: A|I |
|
| SponsorRemarks | string |
String length: inclusive between 0 and 400 |
|
| CreateUser | integer |
Required |
|
| CreateIp | string |
Required String length: inclusive between 0 and 20 |
Request Formats
application/json, text/json
Sample:
{
"BookId": 1,
"Prefix": {
"PrefixId": 1,
"PrefixName": "sample string 2"
},
"SponsorName": "sample string 2",
"Code": "sample string 3",
"SponsorAddress": "sample string 4",
"ContactPerson": "sample string 5",
"ContactNumber": "sample string 6",
"Status": "sample string 7",
"SponsorRemarks": "sample string 8",
"CreateUser": 9,
"CreateIp": "sample string 10"
}
application/xml, text/xml
Sample:
<AwardSponsorSaveVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
<BookId>1</BookId>
<Code>sample string 3</Code>
<ContactNumber>sample string 6</ContactNumber>
<ContactPerson>sample string 5</ContactPerson>
<CreateIp>sample string 10</CreateIp>
<CreateUser>9</CreateUser>
<Prefix>
<PrefixId>1</PrefixId>
<PrefixName>sample string 2</PrefixName>
</Prefix>
<SponsorAddress>sample string 4</SponsorAddress>
<SponsorName>sample string 2</SponsorName>
<SponsorRemarks>sample string 8</SponsorRemarks>
<Status>sample string 7</Status>
</AwardSponsorSaveVM>
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.