POST v1/GLUnderwriting/{policyId}/UpsertGLUnderwriting
Inserts or Updates Contractors Underwriting
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
policyId | integer |
Required |
Body Parameters
GeneralLiabilityUnderwritingDTOName | Description | Type | Additional information |
---|---|---|---|
GeneralLiabilityUnderwritingID | integer |
None. |
|
PolicyQuoteID | integer |
None. |
|
MedicalFacilitiesDoctorsProvided | boolean |
None. |
|
RadioactiveNuclearMaterialsExposureCode | boolean |
None. |
|
OperationsInvolveHazardousMaterials | boolean |
None. |
|
OperationsSoldAcquiredorDiscontinued | boolean |
None. |
|
MachineryorEquipmentLoanedRentedtoOthers | boolean |
None. |
|
WatercraftDocksFloatsExposure | boolean |
None. |
|
ParkingFacilitiesOwnedRented | boolean |
None. |
|
ParkingChargedFor | boolean |
None. |
|
RecreationFacilitiesProvided | boolean |
None. |
|
SwimmingPoolonPremises | boolean |
None. |
|
SportingSocialEventsSponsored | boolean |
None. |
|
StructuralAlterationsContemplated | boolean |
None. |
|
DemolitionExposureContemplated | boolean |
None. |
|
GLUnderwritingQuestionResponses | Collection of GLUnderwritingQuestionResponseDTO |
None. |
Request Formats
application/json, text/json
Sample:
{ "GeneralLiabilityUnderwritingID": 1, "PolicyQuoteID": 2, "MedicalFacilitiesDoctorsProvided": true, "RadioactiveNuclearMaterialsExposureCode": true, "OperationsInvolveHazardousMaterials": true, "OperationsSoldAcquiredorDiscontinued": true, "MachineryorEquipmentLoanedRentedtoOthers": true, "WatercraftDocksFloatsExposure": true, "ParkingFacilitiesOwnedRented": true, "ParkingChargedFor": true, "RecreationFacilitiesProvided": true, "SwimmingPoolonPremises": true, "SportingSocialEventsSponsored": true, "StructuralAlterationsContemplated": true, "DemolitionExposureContemplated": true, "GLUnderwritingQuestionResponses": [ { "GLUnderwritingQuestionResponseID": 1, "GLUnderwritingQuestionID": 1, "GeneralLiabilityUnderwritingID": 2, "ResponseNumber": 1, "HighImpact": true, "ResponseData": "sample string 4", "QuestionList": [ { "QuestionID": 1, "QuestionDescription": "sample string 2", "QuestionSystemCode": "sample string 3" }, { "QuestionID": 1, "QuestionDescription": "sample string 2", "QuestionSystemCode": "sample string 3" } ] }, { "GLUnderwritingQuestionResponseID": 1, "GLUnderwritingQuestionID": 1, "GeneralLiabilityUnderwritingID": 2, "ResponseNumber": 1, "HighImpact": true, "ResponseData": "sample string 4", "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:
<GeneralLiabilityUnderwritingDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Policies"> <DemolitionExposureContemplated>true</DemolitionExposureContemplated> <GLUnderwritingQuestionResponses> <GLUnderwritingQuestionResponseDTO> <GLUnderwritingQuestionID>1</GLUnderwritingQuestionID> <GLUnderwritingQuestionResponseID>1</GLUnderwritingQuestionResponseID> <GeneralLiabilityUnderwritingID>2</GeneralLiabilityUnderwritingID> <HighImpact>true</HighImpact> <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> <ResponseData>sample string 4</ResponseData> <ResponseNumber>1</ResponseNumber> </GLUnderwritingQuestionResponseDTO> <GLUnderwritingQuestionResponseDTO> <GLUnderwritingQuestionID>1</GLUnderwritingQuestionID> <GLUnderwritingQuestionResponseID>1</GLUnderwritingQuestionResponseID> <GeneralLiabilityUnderwritingID>2</GeneralLiabilityUnderwritingID> <HighImpact>true</HighImpact> <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> <ResponseData>sample string 4</ResponseData> <ResponseNumber>1</ResponseNumber> </GLUnderwritingQuestionResponseDTO> </GLUnderwritingQuestionResponses> <GeneralLiabilityUnderwritingID>1</GeneralLiabilityUnderwritingID> <MachineryorEquipmentLoanedRentedtoOthers>true</MachineryorEquipmentLoanedRentedtoOthers> <MedicalFacilitiesDoctorsProvided>true</MedicalFacilitiesDoctorsProvided> <OperationsInvolveHazardousMaterials>true</OperationsInvolveHazardousMaterials> <OperationsSoldAcquiredorDiscontinued>true</OperationsSoldAcquiredorDiscontinued> <ParkingChargedFor>true</ParkingChargedFor> <ParkingFacilitiesOwnedRented>true</ParkingFacilitiesOwnedRented> <PolicyQuoteID>2</PolicyQuoteID> <RadioactiveNuclearMaterialsExposureCode>true</RadioactiveNuclearMaterialsExposureCode> <RecreationFacilitiesProvided>true</RecreationFacilitiesProvided> <SportingSocialEventsSponsored>true</SportingSocialEventsSponsored> <StructuralAlterationsContemplated>true</StructuralAlterationsContemplated> <SwimmingPoolonPremises>true</SwimmingPoolonPremises> <WatercraftDocksFloatsExposure>true</WatercraftDocksFloatsExposure> </GeneralLiabilityUnderwritingDTO>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ActionResultDTO
ActionResultDTOName | Description | Type | Additional 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>