POST v1/ContractorsUnderwriting/{policyId}/UpsertContractorsUnderwriting

Inserts or Updates Contractors Underwriting

Request Information

URI Parameters

NameDescriptionTypeAdditional information
policyId

integer

Required

Body Parameters

ContractorsUnderwritingDTO
NameDescriptionTypeAdditional information
Id

integer

None.

PolicyQuoteID

integer

None.

NumberofFullTimeStaff

integer

None.

NumberofPartTimeStaff

integer

None.

PercentofWorkSubcontracted

integer

None.

WorkContracted

string

None.

DollarsPaidtoSubcontractors

decimal number

None.

EmployeeOversightRadius

integer

None.

RoofingPercent

integer

None.

RenovationPercent

integer

None.

MaximumExcavationDepth

integer

None.

GradingPercent

integer

None.

TreeTrimmingPercent

integer

None.

SnowplowingPercent

integer

None.

PaintingInsidePercent

integer

None.

PaintingOutsidePercent

integer

None.

ScaffoldingHeight

integer

None.

ExteriorSprayPercent

integer

None.

CommercialRoofingPercent

integer

None.

ResidentialRoofingPercent

integer

None.

TotalPercentWorkResidential

integer

None.

TotalPercentWorkCommercial

integer

None.

NewConstructionPercent

integer

None.

RemodelPercent

integer

None.

SubcontractorMinimumGLLimitPerOccurrence

integer

None.

SubcontractorMinimumGLLimitAggregate

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "PolicyQuoteID": 2,
  "NumberofFullTimeStaff": 1,
  "NumberofPartTimeStaff": 1,
  "PercentofWorkSubcontracted": 1,
  "WorkContracted": "sample string 3",
  "DollarsPaidtoSubcontractors": 1.0,
  "EmployeeOversightRadius": 1,
  "RoofingPercent": 1,
  "RenovationPercent": 1,
  "MaximumExcavationDepth": 1,
  "GradingPercent": 1,
  "TreeTrimmingPercent": 1,
  "SnowplowingPercent": 1,
  "PaintingInsidePercent": 1,
  "PaintingOutsidePercent": 1,
  "ScaffoldingHeight": 1,
  "ExteriorSprayPercent": 1,
  "CommercialRoofingPercent": 1,
  "ResidentialRoofingPercent": 1,
  "TotalPercentWorkResidential": 1,
  "TotalPercentWorkCommercial": 1,
  "NewConstructionPercent": 1,
  "RemodelPercent": 1,
  "SubcontractorMinimumGLLimitPerOccurrence": 1,
  "SubcontractorMinimumGLLimitAggregate": 1
}

application/xml, text/xml

Sample:
<ContractorsUnderwritingDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Policies">
  <CommercialRoofingPercent>1</CommercialRoofingPercent>
  <DollarsPaidtoSubcontractors>1</DollarsPaidtoSubcontractors>
  <EmployeeOversightRadius>1</EmployeeOversightRadius>
  <ExteriorSprayPercent>1</ExteriorSprayPercent>
  <GradingPercent>1</GradingPercent>
  <Id>1</Id>
  <MaximumExcavationDepth>1</MaximumExcavationDepth>
  <NewConstructionPercent>1</NewConstructionPercent>
  <NumberofFullTimeStaff>1</NumberofFullTimeStaff>
  <NumberofPartTimeStaff>1</NumberofPartTimeStaff>
  <PaintingInsidePercent>1</PaintingInsidePercent>
  <PaintingOutsidePercent>1</PaintingOutsidePercent>
  <PercentofWorkSubcontracted>1</PercentofWorkSubcontracted>
  <PolicyQuoteID>2</PolicyQuoteID>
  <RemodelPercent>1</RemodelPercent>
  <RenovationPercent>1</RenovationPercent>
  <ResidentialRoofingPercent>1</ResidentialRoofingPercent>
  <RoofingPercent>1</RoofingPercent>
  <ScaffoldingHeight>1</ScaffoldingHeight>
  <SnowplowingPercent>1</SnowplowingPercent>
  <SubcontractorMinimumGLLimitAggregate>1</SubcontractorMinimumGLLimitAggregate>
  <SubcontractorMinimumGLLimitPerOccurrence>1</SubcontractorMinimumGLLimitPerOccurrence>
  <TotalPercentWorkCommercial>1</TotalPercentWorkCommercial>
  <TotalPercentWorkResidential>1</TotalPercentWorkResidential>
  <TreeTrimmingPercent>1</TreeTrimmingPercent>
  <WorkContracted>sample string 3</WorkContracted>
</ContractorsUnderwritingDTO>

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

Response Information

Resource Description

ActionResultDTO

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>