POST api/AddIncomeDetail

Request Information

URI Parameters

None.

Body Parameters

Income_Input
NameDescriptionTypeAdditional information
IncomeID

integer

None.

UserId

integer

None.

Economical_Status

integer

None.

EcoStatus_ID

integer

None.

EconomicalST_name

string

Required

FarmIncome

decimal number

Matching regular expression pattern: ^[+-]?\d+(\.\d+)?$

LivestockIncomde

decimal number

Matching regular expression pattern: ^[+-]?\d+(\.\d+)?$

FisheriesIncome

decimal number

Matching regular expression pattern: ^[+-]?\d+(\.\d+)?$

OtherActivities

string

Matching regular expression pattern: ^[+-]?\d+(\.\d+)?$

Request Formats

application/json, text/json

Sample:
{
  "IncomeID": 1,
  "UserId": 2,
  "Economical_Status": 1,
  "EcoStatus_ID": 1,
  "EconomicalST_name": "sample string 3",
  "FarmIncome": 1.1,
  "LivestockIncomde": 1.1,
  "FisheriesIncome": 1.1,
  "OtherActivities": "sample string 4"
}

application/xml, text/xml

Sample:
<Income_Input xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WDD_Models">
  <EcoStatus_ID>1</EcoStatus_ID>
  <EconomicalST_name>sample string 3</EconomicalST_name>
  <Economical_Status>1</Economical_Status>
  <FarmIncome>1.1</FarmIncome>
  <FisheriesIncome>1.1</FisheriesIncome>
  <IncomeID>1</IncomeID>
  <LivestockIncomde>1.1</LivestockIncomde>
  <OtherActivities>sample string 4</OtherActivities>
  <UserId>2</UserId>
</Income_Input>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Income_Input'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.