PUT api/AwardSponsor/Update

Request Information

URI Parameters

None.

Body Parameters

AwardSponsorUpdateVM
NameDescriptionTypeAdditional information
SponsorId

integer

Required

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

UpdateUser

integer

Required

UpdateIp

string

Required

String length: inclusive between 0 and 20

Request Formats

application/json, text/json

Sample:
{
  "SponsorId": 1,
  "BookId": 2,
  "Prefix": {
    "PrefixId": 1,
    "PrefixName": "sample string 2"
  },
  "SponsorName": "sample string 3",
  "Code": "sample string 4",
  "SponsorAddress": "sample string 5",
  "ContactPerson": "sample string 6",
  "ContactNumber": "sample string 7",
  "Status": "sample string 8",
  "SponsorRemarks": "sample string 9",
  "UpdateUser": 10,
  "UpdateIp": "sample string 11"
}

application/xml, text/xml

Sample:
<AwardSponsorUpdateVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <BookId>2</BookId>
  <Code>sample string 4</Code>
  <ContactNumber>sample string 7</ContactNumber>
  <ContactPerson>sample string 6</ContactPerson>
  <Prefix>
    <PrefixId>1</PrefixId>
    <PrefixName>sample string 2</PrefixName>
  </Prefix>
  <SponsorAddress>sample string 5</SponsorAddress>
  <SponsorId>1</SponsorId>
  <SponsorName>sample string 3</SponsorName>
  <SponsorRemarks>sample string 9</SponsorRemarks>
  <Status>sample string 8</Status>
  <UpdateIp>sample string 11</UpdateIp>
  <UpdateUser>10</UpdateUser>
</AwardSponsorUpdateVM>

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.