POST api/AddInsuranceDetails

Request Information

URI Parameters

None.

Body Parameters

Insurance_Input
NameDescriptionTypeAdditional information
InsurenceID

integer

None.

UserId

integer

None.

INCAgencyName

integer

None.

Agency

string

None.

InsuranceType

integer

None.

InsuranceTypeName

string

None.

InsuredOn

string

None.

PolicyNumber

string

Matching regular expression pattern: ([0-9])*$

MaturityDate

string

None.

Premium

integer

Matching regular expression pattern: ([0-9])+$

PaymentMode

integer

None.

ModeOfPayment

string

None.

Request Formats

application/json, text/json

Sample:
{
  "InsurenceID": 1,
  "UserId": 2,
  "INCAgencyName": 3,
  "Agency": "sample string 4",
  "InsuranceType": 5,
  "InsuranceTypeName": "sample string 6",
  "InsuredOn": "sample string 7",
  "PolicyNumber": "sample string 8",
  "MaturityDate": "sample string 9",
  "Premium": 1,
  "PaymentMode": 1,
  "ModeOfPayment": "sample string 10"
}

application/xml, text/xml

Sample:
<Insurance_Input xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WDD_Models">
  <Agency>sample string 4</Agency>
  <INCAgencyName>3</INCAgencyName>
  <InsuranceType>5</InsuranceType>
  <InsuranceTypeName>sample string 6</InsuranceTypeName>
  <InsuredOn>sample string 7</InsuredOn>
  <InsurenceID>1</InsurenceID>
  <MaturityDate>sample string 9</MaturityDate>
  <ModeOfPayment>sample string 10</ModeOfPayment>
  <PaymentMode>1</PaymentMode>
  <PolicyNumber>sample string 8</PolicyNumber>
  <Premium>1</Premium>
  <UserId>2</UserId>
</Insurance_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 'Insurance_Input'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.