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

The unique ID for the .

integer

None.

PolicyQuoteID

The ID of the parent .

integer

None.

NamedInsured

The named insured for the policy.

string

None.

ListOrder

The display Order for the named insured.

byte

None.

CompanyId

The display CompanyId for the named insured.

string

None.

AgencyId

The display AgencyId for the named insured.

string

None.

LegalEntityCode

The display LegalEntityCode for the named insured.

string

None.

NoOfMemberAndManagers

The display count of NoOfMemberAndManagers for the named insured.

integer

None.

TaxCode

The display TaxCode for the named insured.

string

None.

EducationLevelId

The display EducationLevelId for the named insured.

integer

None.

CountryId

The display Country Code for the named insured.

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

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>

Response Information

Resource Description

ActionResultDTO
NameDescriptionTypeAdditional information
IsSuccess

Signifies whether action is successful

boolean

None.

ErrorCode

Error code

string

None.

ErrorMessage

Error message

string

None.

InfoMessage

Information message

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>