POST api/DefInsurance/InsertOrUpdateInsurance?vUserID={vUserID}&isOpen={isOpen}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| vUserID | integer |
Required |
|
| isOpen | boolean |
Required |
Body Parameters
Insurance| Name | Description | Type | Additional information |
|---|---|---|---|
| SrNo | integer |
None. |
|
| CompanyName | string |
None. |
|
| CoverNote | string |
None. |
|
| InsuredValue | decimal number |
None. |
|
| NetPremium | decimal number |
None. |
|
| FromDate | date |
None. |
|
| ToDate | date |
None. |
|
| PolicyNo | string |
None. |
|
| Category | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"SrNo": 1,
"CompanyName": "sample string 2",
"CoverNote": "sample string 3",
"InsuredValue": 4.0,
"NetPremium": 5.0,
"FromDate": "2026-06-24T03:01:54.7271887-07:00",
"ToDate": "2026-06-24T03:01:54.7271887-07:00",
"PolicyNo": "sample string 8",
"Category": "sample string 9"
}
application/xml, text/xml
Sample:
<Insurance xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Objects"> <Category>sample string 9</Category> <CompanyName>sample string 2</CompanyName> <CoverNote>sample string 3</CoverNote> <FromDate>2026-06-24T03:01:54.7271887-07:00</FromDate> <InsuredValue>4</InsuredValue> <NetPremium>5</NetPremium> <PolicyNo>sample string 8</PolicyNo> <SrNo>1</SrNo> <ToDate>2026-06-24T03:01:54.7271887-07:00</ToDate> </Insurance>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |