POST v1/Policies/UpdateUWQuestion

Updates the specifed UnderWritingQuestions entry

Request Information

URI Parameters

None.

Body Parameters

UnderwritingQuestionDTO
NameDescriptionTypeAdditional information
Id

integer

None.

PolicyQuoteID

integer

None.

QuestionID

integer

None.

HasAnswer

boolean

None.

OccurrenceDate

date

None.

Explanation

string

None.

ResolutionDescription

string

None.

ResolutionDate

date

None.

Numberof

integer

None.

NumberofType

string

None.

AnswerAmount

decimal number

None.

AmountOfType

string

None.

AnswerType

string

None.

AnswerChoiceId

string

None.

Answer

string

None.

QuestionList

Collection of QuestionDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "PolicyQuoteID": 2,
  "QuestionID": 1,
  "HasAnswer": true,
  "OccurrenceDate": "2024-12-13T18:50:15.5143091+00:00",
  "Explanation": "sample string 3",
  "ResolutionDescription": "sample string 4",
  "ResolutionDate": "2024-12-13T18:50:15.5143091+00:00",
  "Numberof": 1,
  "NumberofType": "sample string 5",
  "AnswerAmount": 1.0,
  "AmountOfType": "sample string 6",
  "AnswerType": "sample string 7",
  "AnswerChoiceId": "sample string 8",
  "Answer": "sample string 9",
  "QuestionList": [
    {
      "QuestionID": 1,
      "QuestionDescription": "sample string 2",
      "QuestionSystemCode": "sample string 3"
    },
    {
      "QuestionID": 1,
      "QuestionDescription": "sample string 2",
      "QuestionSystemCode": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<UnderwritingQuestionDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Policies">
  <AmountOfType>sample string 6</AmountOfType>
  <Answer>sample string 9</Answer>
  <AnswerAmount>1</AnswerAmount>
  <AnswerChoiceId>sample string 8</AnswerChoiceId>
  <AnswerType>sample string 7</AnswerType>
  <Explanation>sample string 3</Explanation>
  <HasAnswer>true</HasAnswer>
  <Id>1</Id>
  <Numberof>1</Numberof>
  <NumberofType>sample string 5</NumberofType>
  <OccurrenceDate>2024-12-13T18:50:15.5143091+00:00</OccurrenceDate>
  <PolicyQuoteID>2</PolicyQuoteID>
  <QuestionID>1</QuestionID>
  <QuestionList>
    <QuestionDTO>
      <QuestionDescription>sample string 2</QuestionDescription>
      <QuestionID>1</QuestionID>
      <QuestionSystemCode>sample string 3</QuestionSystemCode>
    </QuestionDTO>
    <QuestionDTO>
      <QuestionDescription>sample string 2</QuestionDescription>
      <QuestionID>1</QuestionID>
      <QuestionSystemCode>sample string 3</QuestionSystemCode>
    </QuestionDTO>
  </QuestionList>
  <ResolutionDate>2024-12-13T18:50:15.5143091+00:00</ResolutionDate>
  <ResolutionDescription>sample string 4</ResolutionDescription>
</UnderwritingQuestionDTO>

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

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>