POST api/AwardDistribution/Save

Request Information

URI Parameters

None.

Body Parameters

AwardDistributionSaveVM
NameDescriptionTypeAdditional information
BookId

integer

Required

EntryDate

string

Required

AwardYear

integer

Required

Sponsor

AwardSponsorLookupVM

Required

Status

string

Required

Matching regular expression pattern: A|I

Award

AwardLookupVM

Required

Prefix

PrefixLookup

None.

AwardeeName

string

Required

String length: inclusive between 0 and 100

AwardeeAddress

string

Required

String length: inclusive between 0 and 200

AwardeeContactNumber

string

String length: inclusive between 0 and 50

AwardeeRemarks

string

String length: inclusive between 0 and 100

CreateUser

integer

Required

CreateIp

string

String length: inclusive between 0 and 20

FinYearId

integer

None.

AwardeeParish

EstablishmentLookup

None.

Request Formats

application/json, text/json

Sample:
{
  "BookId": 1,
  "EntryDate": "sample string 2",
  "AwardYear": 3,
  "Sponsor": {
    "SponsorId": 1,
    "SponsorName": "sample string 2"
  },
  "Status": "sample string 4",
  "Award": {
    "AwardId": 1,
    "AwardName": "sample string 2"
  },
  "Prefix": {
    "PrefixId": 1,
    "PrefixName": "sample string 2"
  },
  "AwardeeName": "sample string 5",
  "AwardeeAddress": "sample string 6",
  "AwardeeContactNumber": "sample string 7",
  "AwardeeRemarks": "sample string 8",
  "CreateUser": 9,
  "CreateIp": "sample string 10",
  "FinYearId": 11,
  "AwardeeParish": {
    "EstablishId": 1,
    "EstablishName": "sample string 2",
    "EstablishType": {
      "EstablishTypeId": 1,
      "EstablishTypeName": "sample string 2"
    },
    "EstablishCategory": {
      "EstablishCategoryId": 1,
      "EstablishCategoryName": "sample string 2"
    },
    "TotalMembers": 3,
    "TotalHouses": 4
  }
}

application/xml, text/xml

Sample:
<AwardDistributionSaveVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <Award>
    <AwardId>1</AwardId>
    <AwardName>sample string 2</AwardName>
  </Award>
  <AwardYear>3</AwardYear>
  <AwardeeAddress>sample string 6</AwardeeAddress>
  <AwardeeContactNumber>sample string 7</AwardeeContactNumber>
  <AwardeeName>sample string 5</AwardeeName>
  <AwardeeParish>
    <EstablishCategory>
      <EstablishCategoryId>1</EstablishCategoryId>
      <EstablishCategoryName>sample string 2</EstablishCategoryName>
    </EstablishCategory>
    <EstablishId>1</EstablishId>
    <EstablishName>sample string 2</EstablishName>
    <EstablishType>
      <EstablishTypeId>1</EstablishTypeId>
      <EstablishTypeName>sample string 2</EstablishTypeName>
    </EstablishType>
    <TotalHouses>4</TotalHouses>
    <TotalMembers>3</TotalMembers>
  </AwardeeParish>
  <AwardeeRemarks>sample string 8</AwardeeRemarks>
  <BookId>1</BookId>
  <CreateIp>sample string 10</CreateIp>
  <CreateUser>9</CreateUser>
  <EntryDate>sample string 2</EntryDate>
  <FinYearId>11</FinYearId>
  <Prefix>
    <PrefixId>1</PrefixId>
    <PrefixName>sample string 2</PrefixName>
  </Prefix>
  <Sponsor>
    <SponsorId>1</SponsorId>
    <SponsorName>sample string 2</SponsorName>
  </Sponsor>
  <Status>sample string 4</Status>
</AwardDistributionSaveVM>

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.