POST v1/Policies/{policyId}/NamedInsured

Replaces the named insured for the specified policy.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
policyId

string

Required

Body Parameters

PolicyNamedInsuredDTO
NameDescriptionTypeAdditional information
PolicyNamedInsuredID

integer

None.

PolicyQuoteID

integer

None.

NamedInsured

string

None.

ListOrder

byte

None.

CompanyId

string

None.

AgencyId

string

None.

LegalEntityCode

string

None.

NoOfMemberAndManagers

integer

None.

TaxCode

string

None.

EducationLevelId

integer

None.

CountryId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PolicyNamedInsuredID": 1,
  "PolicyQuoteID": 2,
  "NamedInsured": "sample string 3",
  "ListOrder": 64,
  "CompanyId": "sample string 5",
  "AgencyId": "sample string 6",
  "LegalEntityCode": "sample string 7",
  "NoOfMemberAndManagers": 1,
  "TaxCode": "sample string 8",
  "EducationLevelId": 1,
  "CountryId": "sample string 9"
}

application/xml, text/xml

Sample:
<PolicyNamedInsuredDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Policies">
  <AgencyId>sample string 6</AgencyId>
  <CompanyId>sample string 5</CompanyId>
  <CountryId>sample string 9</CountryId>
  <EducationLevelId>1</EducationLevelId>
  <LegalEntityCode>sample string 7</LegalEntityCode>
  <ListOrder>64</ListOrder>
  <NamedInsured>sample string 3</NamedInsured>
  <NoOfMemberAndManagers>1</NoOfMemberAndManagers>
  <PolicyNamedInsuredID>1</PolicyNamedInsuredID>
  <PolicyQuoteID>2</PolicyQuoteID>
  <TaxCode>sample string 8</TaxCode>
</PolicyNamedInsuredDTO>

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

Response Information

Resource Description

ActionResultDTO
NameDescriptionTypeAdditional information
IsSuccess

boolean

None.

ErrorCode

string

None.

ErrorMessage

string

None.

InfoMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSuccess": true,
  "ErrorCode": "sample string 2",
  "ErrorMessage": "sample string 3",
  "InfoMessage": "sample string 4"
}

application/xml, text/xml

Sample:
<ActionResultDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects">
  <ErrorCode>sample string 2</ErrorCode>
  <ErrorMessage>sample string 3</ErrorMessage>
  <InfoMessage>sample string 4</InfoMessage>
  <IsSuccess>true</IsSuccess>
</ActionResultDTO>