POST v1/Policies/Details/InlandMarine/CoverageInfo

Upsert the Coverage Info Section data for Inland Marine type policies

Request Information

URI Parameters

None.

Body Parameters

Coverage info

PolicyDetailsInlandMarineCoveragesAndDescriptionDTO
NameDescriptionTypeAdditional information
CoverageInfoDescription

string

None.

CoverageInfoIDsToDelete

Collection of integer

None.

Coverages

Collection of PolicyDetailsInlandMarineCoverageInfoDTO

None.

PolicyDetailsID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "CoverageInfoDescription": "sample string 1",
  "CoverageInfoIDsToDelete": [
    1,
    2
  ],
  "Coverages": [
    {
      "CoverageInfoID": 1,
      "PolicyDetailsID": 2,
      "Coverage": "sample string 3",
      "Limit": "sample string 4",
      "Deductible": "sample string 5",
      "DeductibleType": "sample string 6"
    },
    {
      "CoverageInfoID": 1,
      "PolicyDetailsID": 2,
      "Coverage": "sample string 3",
      "Limit": "sample string 4",
      "Deductible": "sample string 5",
      "DeductibleType": "sample string 6"
    }
  ],
  "PolicyDetailsID": 2
}

application/xml, text/xml

Sample:
<PolicyDetailsInlandMarineCoveragesAndDescriptionDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Policies">
  <CoverageInfoDescription>sample string 1</CoverageInfoDescription>
  <CoverageInfoIDsToDelete xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </CoverageInfoIDsToDelete>
  <Coverages>
    <PolicyDetailsInlandMarineCoverageInfoDTO>
      <Coverage>sample string 3</Coverage>
      <CoverageInfoID>1</CoverageInfoID>
      <Deductible>sample string 5</Deductible>
      <DeductibleType>sample string 6</DeductibleType>
      <Limit>sample string 4</Limit>
      <PolicyDetailsID>2</PolicyDetailsID>
    </PolicyDetailsInlandMarineCoverageInfoDTO>
    <PolicyDetailsInlandMarineCoverageInfoDTO>
      <Coverage>sample string 3</Coverage>
      <CoverageInfoID>1</CoverageInfoID>
      <Deductible>sample string 5</Deductible>
      <DeductibleType>sample string 6</DeductibleType>
      <Limit>sample string 4</Limit>
      <PolicyDetailsID>2</PolicyDetailsID>
    </PolicyDetailsInlandMarineCoverageInfoDTO>
  </Coverages>
  <PolicyDetailsID>2</PolicyDetailsID>
</PolicyDetailsInlandMarineCoveragesAndDescriptionDTO>

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

Response Information

Resource Description

Upsertion result with upserted data

ActionResultDTOOfPolicyDetailsInlandMarineCoveragesAndDescriptionDTO
NameDescriptionTypeAdditional information
Result

PolicyDetailsInlandMarineCoveragesAndDescriptionDTO

None.

CreatedBy

string

None.

EntityID

integer

None.

RowSource

string

None.

PolicyID

integer

None.

IsSuccess

boolean

None.

ErrorCode

string

None.

ErrorMessage

string

None.

InfoMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": {
    "CoverageInfoDescription": "sample string 1",
    "CoverageInfoIDsToDelete": [
      1,
      2
    ],
    "Coverages": [
      {
        "CoverageInfoID": 1,
        "PolicyDetailsID": 2,
        "Coverage": "sample string 3",
        "Limit": "sample string 4",
        "Deductible": "sample string 5",
        "DeductibleType": "sample string 6"
      },
      {
        "CoverageInfoID": 1,
        "PolicyDetailsID": 2,
        "Coverage": "sample string 3",
        "Limit": "sample string 4",
        "Deductible": "sample string 5",
        "DeductibleType": "sample string 6"
      }
    ],
    "PolicyDetailsID": 2
  },
  "CreatedBy": "sample string 1",
  "EntityID": 2,
  "RowSource": "sample string 3",
  "PolicyID": 4,
  "IsSuccess": true,
  "ErrorCode": "sample string 6",
  "ErrorMessage": "sample string 7",
  "InfoMessage": "sample string 8"
}

application/xml, text/xml

Sample:
<ActionResultOfPolicyDetailsInlandMarineCoveragesAndDescriptionDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects">
  <ErrorCode>sample string 6</ErrorCode>
  <ErrorMessage>sample string 7</ErrorMessage>
  <InfoMessage>sample string 8</InfoMessage>
  <IsSuccess>true</IsSuccess>
  <CreatedBy>sample string 1</CreatedBy>
  <EntityID>2</EntityID>
  <PolicyID>4</PolicyID>
  <Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Policies">
    <d2p1:CoverageInfoDescription>sample string 1</d2p1:CoverageInfoDescription>
    <d2p1:CoverageInfoIDsToDelete xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </d2p1:CoverageInfoIDsToDelete>
    <d2p1:Coverages>
      <d2p1:PolicyDetailsInlandMarineCoverageInfoDTO>
        <d2p1:Coverage>sample string 3</d2p1:Coverage>
        <d2p1:CoverageInfoID>1</d2p1:CoverageInfoID>
        <d2p1:Deductible>sample string 5</d2p1:Deductible>
        <d2p1:DeductibleType>sample string 6</d2p1:DeductibleType>
        <d2p1:Limit>sample string 4</d2p1:Limit>
        <d2p1:PolicyDetailsID>2</d2p1:PolicyDetailsID>
      </d2p1:PolicyDetailsInlandMarineCoverageInfoDTO>
      <d2p1:PolicyDetailsInlandMarineCoverageInfoDTO>
        <d2p1:Coverage>sample string 3</d2p1:Coverage>
        <d2p1:CoverageInfoID>1</d2p1:CoverageInfoID>
        <d2p1:Deductible>sample string 5</d2p1:Deductible>
        <d2p1:DeductibleType>sample string 6</d2p1:DeductibleType>
        <d2p1:Limit>sample string 4</d2p1:Limit>
        <d2p1:PolicyDetailsID>2</d2p1:PolicyDetailsID>
      </d2p1:PolicyDetailsInlandMarineCoverageInfoDTO>
    </d2p1:Coverages>
    <d2p1:PolicyDetailsID>2</d2p1:PolicyDetailsID>
  </Result>
  <RowSource>sample string 3</RowSource>
</ActionResultOfPolicyDetailsInlandMarineCoveragesAndDescriptionDTO>