POST v1/Policies/UpdatePolicyAttachment

Updates the specifed Policyattachment entry

Request Information

URI Parameters

None.

Body Parameters

PolicyAttachmentDTO
NameDescriptionTypeAdditional information
Id

integer

None.

PolicyQuoteID

integer

None.

AttachmentTypeID

integer

None.

AttachmentDescription

string

None.

ResponsibilityID

string

None.

AdditionalDescription

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "PolicyQuoteID": 2,
  "AttachmentTypeID": 1,
  "AttachmentDescription": "sample string 3",
  "ResponsibilityID": "sample string 4",
  "AdditionalDescription": "sample string 5"
}

application/xml, text/xml

Sample:
<PolicyAttachmentDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Policies">
  <AdditionalDescription>sample string 5</AdditionalDescription>
  <AttachmentDescription>sample string 3</AttachmentDescription>
  <AttachmentTypeID>1</AttachmentTypeID>
  <Id>1</Id>
  <PolicyQuoteID>2</PolicyQuoteID>
  <ResponsibilityID>sample string 4</ResponsibilityID>
</PolicyAttachmentDTO>

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

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>