POST api/Gadget/UpdateGadgetDetails

Request Information

URI Parameters

None.

Body Parameters

GadgetDetailsRequests
NameDescriptionTypeAdditional information
Id

integer

None.

Policyno

string

None.

Name

string

None.

SumInsured

decimal number

None.

Premium

decimal number

None.

IMEINumber

string

None.

GadgetType

string

None.

Serialnumber

string

None.

PremiumRate

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Policyno": "sample string 2",
  "Name": "sample string 3",
  "SumInsured": 4.0,
  "Premium": 5.0,
  "IMEINumber": "sample string 6",
  "GadgetType": "sample string 7",
  "Serialnumber": "sample string 8",
  "PremiumRate": 9.0
}

application/xml, text/xml

Sample:
<GadgetDetailsRequests xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CHICoreRestAPI.Core.Models.Gadget">
  <GadgetType>sample string 7</GadgetType>
  <IMEINumber>sample string 6</IMEINumber>
  <Id>1</Id>
  <Name>sample string 3</Name>
  <Policyno>sample string 2</Policyno>
  <Premium>5</Premium>
  <PremiumRate>9</PremiumRate>
  <Serialnumber>sample string 8</Serialnumber>
  <SumInsured>4</SumInsured>
</GadgetDetailsRequests>

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 'GadgetDetailsRequests'.

Response Information

Resource Description

GadgetDetailsResponse
NameDescriptionTypeAdditional information
IsSuccessful

boolean

None.

PolicyNo

string

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSuccessful": true,
  "PolicyNo": "sample string 2",
  "Message": "sample string 3"
}

application/xml, text/xml

Sample:
<GadgetDetailsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CHICoreRestAPI.Core.Models.Gadget">
  <IsSuccessful>true</IsSuccessful>
  <Message>sample string 3</Message>
  <PolicyNo>sample string 2</PolicyNo>
</GadgetDetailsResponse>