Create Risk Policy Set
POST {{apiPath}}/environments/{{envID}}/riskPolicySets
This PingOne collection contains only the requests without documentation. For the official PingOne Platform API documentation, see Create Risk Policy Set.
Request Body
{"name"=>"Score-based policy", "default"=>false, "defaultResult"=>{"level"=>"Low"}, "riskPolicies"=>[{"name"=>"ANONYMOUS_NETWORK_DETECTION", "result"=>{"level"=>"HIGH"}, "condition"=>{"value"=>"${details.anonymousNetworkDetected}", "equals"=>true}}, {"name"=>"GEOVELOCITY_ANOMALY", "result"=>{"level"=>"MEDIUM"}, "condition"=>{"value"=>"${details.impossibleTravel}", "equals"=>true}}, {"name"=>"Medium scored policy", "result"=>{"level"=>"MEDIUM"}, "condition"=>{"type"=>"AGGREGATED_SCORES", "aggregatedScores"=>[{"value"=>"${details.userLocationAnomaly.level}", "score"=>40}, {"value"=>"${details.anonymousNetwork.level}", "score"=>60}, {"value"=>"${details.ipRisk.level}", "score"=>40}], "between"=>{"minScore"=>700, "maxScore"=>900}}}, {"name"=>"High scored policy", "result"=>{"level"=>"HIGH"}, "condition"=>{"type"=>"AGGREGATED_SCORES", "aggregatedScores"=>[{"value"=>"${details.userLocationAnomaly.level}", "score"=>40}, {"value"=>"${details.anonymousNetwork.level}", "score"=>60}, {"value"=>"${details.ipRisk.level}", "score"=>40}], "between"=>{"minScore"=>900, "maxScore"=>1000}}}]}