Create and Run UDW
POST https://{{HOST}}/riskmodeler/v1/workflows
Request Body
{"name"=>"My custom workflow", "operations"=>[{"operation"=>"/v3/exposurebatches?datasource={{EDM_NAME}}", "label"=>"Op1", "input"=>{"accounts"=>[{"label"=>"accLabel1", "policies"=>[{"newCauseOfLoss"=>{"name"=>"foo"}, "coverages"=>[], "reinsuranceCessions"=>[], "policyConditions"=>[{"label"=>"PolicyCondition1Label", "name"=>"IT-Test", "isPredefined"=>false, "limit"=>0, "deductible"=>0, "deductibleType"=>{"id"=>0, "code"=>"", "name"=>""}, "conditionType"=>{"id"=>2, "code"=>"", "name"=>""}, "parentCondition"=>{"code"=>"", "name"=>""}, "policyNumber"=>nil, "policyConditionCriterias"=>[{"logic"=>"", "openPar"=>"(", "field"=>"POSTALCODE", "operator"=>"=", "value"=>"94560", "closePar"=>")"}]}], "id"=>0, "number"=>"acct1", "peril"=>{"id"=>1, "code"=>"", "name"=>"Earthquake"}, "currency"=>{"id"=>0, "code"=>"USD", "name"=>"US Dollar"}, "partOf"=>0, "attachmentPoint"=>0, "minDeductible"=>0, "maxDeductible"=>0, "blanketLimit"=>0, "blanketDeductible"=>0, "blanketPremium"=>0, "biLifeLine"=>0, "deductType"=>0, "isValid"=>false, "percentOfLossDeductible"=>0}], "locations"=>[{"label"=>"location1Label", "property"=>{"locationNumber"=>"2", "locationName"=>"2", "yearBuilt"=>"1967", "buildingClassScheme"=>{"id"=>0, "code"=>"RMS", "name"=>"RMS"}, "buildingClass"=>{"id"=>0, "code"=>"1", "name"=>"1 - WOOD"}, "occupancyTypeScheme"=>{"id"=>0, "code"=>"ATC", "name"=>"ATC"}, "occupancyType"=>{"id"=>25, "code"=>"", "name"=>"25 - Education"}, "buildings"=>1, "stories"=>1, "isPrimaryBldg"=>true, "isValid"=>false}, "address"=>{"country"=>{"code"=>"US", "name"=>""}, "countryScheme"=>"ISO2A", "countryRmsCode"=>"US", "latitude"=>0, "longitude"=>0, "streetAddress"=>"8646 230 Way NE", "cityName"=>"REDMOND", "postalCode"=>"98053", "admin1Code"=>"", "admin1Name"=>"WA"}, "currency"=>{"id"=>0, "code"=>"USD", "name"=>"US Dollar"}, "tiv"=>874663, "maxCvgBldgValuation"=>756139, "eqDetail"=>{"siteLimit"=>874663, "siteDeduct"=>0, "combinedDeduct"=>100000, "isValid"=>false, "eqslInsurance"=>{"id"=>0, "code"=>"No", "name"=>"No"}}, "coverages"=>[{"label"=>{"id"=>7, "name"=>"EQ Building"}, "lossType"=>"Building", "value"=>756139, "peril"=>{"id"=>1, "code"=>"", "name"=>"Earthquake"}, "isValid"=>false}, {"label"=>{"id"=>8, "name"=>"EQ Contents"}, "lossType"=>"Contents", "value"=>118524, "peril"=>{"id"=>1, "code"=>"", "name"=>"Earthquake"}, "isValid"=>false}, {"label"=>{"id"=>9, "name"=>"EQ BI"}, "lossType"=>"BI", "value"=>0, "peril"=>{"id"=>1, "code"=>"", "name"=>"Earthquake"}, "isValid"=>false}, {"label"=>{"id"=>50, "name"=>"EQ Combined Cvg"}, "lossType"=>"CombinedCvg", "deductible"=>100000, "peril"=>{"id"=>1, "code"=>"", "name"=>"Earthquake"}, "isValid"=>false}]}], "name"=>"accountName1", "number"=>"accountNumber1", "status"=>"", "cedant"=>nil, "producer"=>nil, "underwriter"=>nil, "branch"=>nil, "userId1"=>"userId1", "userId2"=>"userId2", "userId3"=>"userId3", "userId4"=>"userId4", "userText1"=>"userText1", "userText2"=>"userText2", "stampDate"=>"2022-05-11T12:41:42.045Z", "state"=>"InActive", "linkId"=>"", "guid"=>"", "isValid"=>false, "CustomData"=>nil}]}, "dependsOn"=>[]}, {"operation"=>"/v3/exposurebatches?datasource={{EDM_NAME}}", "label"=>"Op2", "dependsOn"=>["Op1"], "input"=>{"locations"=>[{"operationType"=>"UPDATE", "id"=>"{{$..[?(@.label == 'location1Label')].id}}", "locationConditions"=>[{"conditionId"=>"{{$..[?(@.label == 'PolicyCondition1Label')].id}}", "isIncluded"=>"Included"}]}]}}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Rms-Resource-Group-Id | string |