PingOne Platform APIs

Create Risk Policy Set - Targeted Policy no Scores (PingID users)

 

POST {{apiPath}}/environments/{{envID}}/riskPolicySets

This example uses POST {{apiPath}}/environments/{{envID}}/riskPolicySets to create a new targeted risk policy in an environment that has the PingID service but not the Protect service. The policy contains mitigations but because the Protect service is absent, the policy does not contain a list of specific predictors and scores to use to calculate overall risk level.

The flow type, user group, and application conditions are defined in the targets object.

The mitigations array is used to specify the recommended course of action that should be taken. Currently this array can only contain a single object.

Prerequisites

:::requestmodel

For complete property descriptions, refer to Risk Policies.

Property Type Required?

default

Boolean

Optional

defaultResult.level

Object

Optional

name

String

Required

riskPolicies

String

Required

riskPolicies[].condition

Object

Required

riskPolicies[].condition.equals

String

Optional

riskPolicies[].condition.type

String

Required

riskPolicies[].condition.value

String

Optional

riskPolicies[].name

String

Required

riskPolicies[].result

Object

Required

riskPolicies[].result.mitigations

Array

Optional

riskPolicies[].result.mitigations[].action

String

Optional

riskPolicies[].result.mitigations[].customAction

String

Optional

riskPolicies[].result.mitigations[].policyId

String

Optional

riskPolicies[].result.type

String

Optional

targets

Object

Optional

targets.condition

Object

Optional

targets.condition.and

Array

Optional

targets.condition.and[].contains

String

Optional

targets.condition.and[].list

Array

Optional

:

:leveloffset: -1

Headers

Authorization      Bearer {{accessToken}}

Content-Type      application/json

Body

raw ( application/json )

{
    "name": "Targeted policy without scores - for PingID users",
    "default": false,
    "defaultResult": {
        "level": "Low"
    },
    "targets":{
        "condition": { "and": [{
            "list": ["AUTHENTICATION", "AUTHORIZATION"],
            "contains": "${event.flow.type}"
          },
          {
            "list": ["Sales"],
            "contains": "${event.user.groups}"
          },
          {
            "list": ["6b6f867b-d768-4c2c-a9b6-6816da00d824", "845c9918-94d7-430c-b3d8-eafafc215fd9"],
            "contains": "${event.targetResource.id}"
          }]
        }
    },
    "riskPolicies": [{
        "name" : "USER_LOCATION_ANOMALY",
        "result" : {
          "mitigations" : [ {
            "action" : "CUSTOM",
            "customAction" : "CustomActionForUserLocationAnomaly"
          }],
          "type" : "MITIGATION"
        },
        "condition" : {
          "value" : "${details.userLocationAnomaly.level}",
          "equals" : "High",
          "type" : "VALUE_COMPARISON"
        }
      },
      {
        "name" : "VELOCITY",
        "result" : {
          "mitigations" : [ {
            "action" : "DENY_AND_SUSPEND"
          } ],
          "type" : "MITIGATION"
        },
        "condition" : {
          "value" : "${details.ipVelocityByUser.level}",
          "equals" : "High",
          "type" : "VALUE_COMPARISON"
        }
      },{
        "name" : "USER_RISK_BEHAVIOR",
        "result" : {
          "mitigations" : [ {
            "action" : "VERIFY"
          } ],
          "type" : "MITIGATION"
        },
        "condition" : {
          "value" : "${details.userBasedRiskBehavior.level}",
          "equals" : "Medium",
          "type" : "VALUE_COMPARISON"
        }
      },
      {
        "name" : "EMAIL_REPUTATION",
        "result" : {
          "mitigations" : [ {
            "action" : "MFA",
            "mfaAuthenticationPolicyId" : "{{deviceAuthenticationPolicyID}}"
          } ],
          "type" : "MITIGATION"
        },
        "condition" : {
          "value" : "${details.emailReputation.level}",
          "equals" : "High",
          "type" : "VALUE_COMPARISON"
        }
      },
      {
        "name" : "IP_REPUTATION",
        "result" : {
          "mitigations" : [ {
            "action" : "APPROVE"
          } ],
          "type" : "MITIGATION"
        },
        "condition" : {
          "value" : "${details.ipRisk.level}",
          "equals" : "Low",
          "type" : "VALUE_COMPARISON"
        }
    },
        {
        "name" : "FALLBACK",
        "result" : {
          "mitigations" : [ {
            "action" : "DENY"
          } ],
          "type" : "MITIGATION_FALLBACK"
        }
      }
    ]
}

Example Request

  • cURL

  • C#

  • Go

  • HTTP

  • Java

  • jQuery

  • NodeJS

  • Python

  • PHP

  • Ruby

  • Swift

curl --location --globoff '{{apiPath}}/environments/{{envID}}/riskPolicySets' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{accessToken}}' \
--data '{
    "name": "Targeted policy without scores - for PingID users",
    "default": false,
    "defaultResult": {
        "level": "Low"
    },
    "targets":{
        "condition": { "and": [{
            "list": ["AUTHENTICATION", "AUTHORIZATION"],
            "contains": "${event.flow.type}"
          },
          {
            "list": ["Sales"],
            "contains": "${event.user.groups}"
          },
          {
            "list": ["6b6f867b-d768-4c2c-a9b6-6816da00d824", "845c9918-94d7-430c-b3d8-eafafc215fd9"],
            "contains": "${event.targetResource.id}"
          }]
        }
    },
    "riskPolicies": [{
        "name" : "USER_LOCATION_ANOMALY",
        "result" : {
          "mitigations" : [ {
            "action" : "CUSTOM",
            "customAction" : "CustomActionForUserLocationAnomaly"
          }],
          "type" : "MITIGATION"
        },
        "condition" : {
          "value" : "${details.userLocationAnomaly.level}",
          "equals" : "High",
          "type" : "VALUE_COMPARISON"
        }
      },
      {
        "name" : "VELOCITY",
        "result" : {
          "mitigations" : [ {
            "action" : "DENY_AND_SUSPEND"
          } ],
          "type" : "MITIGATION"
        },
        "condition" : {
          "value" : "${details.ipVelocityByUser.level}",
          "equals" : "High",
          "type" : "VALUE_COMPARISON"
        }
      },{
        "name" : "USER_RISK_BEHAVIOR",
        "result" : {
          "mitigations" : [ {
            "action" : "VERIFY"
          } ],
          "type" : "MITIGATION"
        },
        "condition" : {
          "value" : "${details.userBasedRiskBehavior.level}",
          "equals" : "Medium",
          "type" : "VALUE_COMPARISON"
        }
      },
      {
        "name" : "EMAIL_REPUTATION",
        "result" : {
          "mitigations" : [ {
            "action" : "MFA",
            "mfaAuthenticationPolicyId" : "{{deviceAuthenticationPolicyID}}"
          } ],
          "type" : "MITIGATION"
        },
        "condition" : {
          "value" : "${details.emailReputation.level}",
          "equals" : "High",
          "type" : "VALUE_COMPARISON"
        }
      },
      {
        "name" : "IP_REPUTATION",
        "result" : {
          "mitigations" : [ {
            "action" : "APPROVE"
          } ],
          "type" : "MITIGATION"
        },
        "condition" : {
          "value" : "${details.ipRisk.level}",
          "equals" : "Low",
          "type" : "VALUE_COMPARISON"
        }
    },
        {
        "name" : "FALLBACK",
        "result" : {
          "mitigations" : [ {
            "action" : "DENY"
          } ],
          "type" : "MITIGATION_FALLBACK"
        }
      }
    ]
}'
var options = new RestClientOptions("{{apiPath}}/environments/{{envID}}/riskPolicySets")
{
  MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("", Method.Post);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Authorization", "Bearer {{accessToken}}");
var body = @"{" + "\n" +
@"    ""name"": ""Targeted policy without scores - for PingID users""," + "\n" +
@"    ""default"": false," + "\n" +
@"    ""defaultResult"": {" + "\n" +
@"        ""level"": ""Low""" + "\n" +
@"    }," + "\n" +
@"    ""targets"":{" + "\n" +
@"        ""condition"": { ""and"": [{" + "\n" +
@"            ""list"": [""AUTHENTICATION"", ""AUTHORIZATION""]," + "\n" +
@"            ""contains"": ""${event.flow.type}""" + "\n" +
@"          }," + "\n" +
@"          { " + "\n" +
@"            ""list"": [""Sales""]," + "\n" +
@"            ""contains"": ""${event.user.groups}""" + "\n" +
@"          }," + "\n" +
@"          { " + "\n" +
@"            ""list"": [""6b6f867b-d768-4c2c-a9b6-6816da00d824"", ""845c9918-94d7-430c-b3d8-eafafc215fd9""]," + "\n" +
@"            ""contains"": ""${event.targetResource.id}""" + "\n" +
@"          }]" + "\n" +
@"        }" + "\n" +
@"    }," + "\n" +
@"    ""riskPolicies"": [{" + "\n" +
@"        ""name"" : ""USER_LOCATION_ANOMALY""," + "\n" +
@"        ""result"" : {" + "\n" +
@"          ""mitigations"" : [ {" + "\n" +
@"            ""action"" : ""CUSTOM""," + "\n" +
@"            ""customAction"" : ""CustomActionForUserLocationAnomaly""" + "\n" +
@"          }]," + "\n" +
@"          ""type"" : ""MITIGATION""" + "\n" +
@"        }," + "\n" +
@"        ""condition"" : {" + "\n" +
@"          ""value"" : ""${details.userLocationAnomaly.level}""," + "\n" +
@"          ""equals"" : ""High""," + "\n" +
@"          ""type"" : ""VALUE_COMPARISON""" + "\n" +
@"        }" + "\n" +
@"      }," + "\n" +
@"      {" + "\n" +
@"        ""name"" : ""VELOCITY""," + "\n" +
@"        ""result"" : {" + "\n" +
@"          ""mitigations"" : [ {" + "\n" +
@"            ""action"" : ""DENY_AND_SUSPEND""" + "\n" +
@"          } ]," + "\n" +
@"          ""type"" : ""MITIGATION""" + "\n" +
@"        }," + "\n" +
@"        ""condition"" : {" + "\n" +
@"          ""value"" : ""${details.ipVelocityByUser.level}""," + "\n" +
@"          ""equals"" : ""High""," + "\n" +
@"          ""type"" : ""VALUE_COMPARISON""" + "\n" +
@"        }" + "\n" +
@"      },{" + "\n" +
@"        ""name"" : ""USER_RISK_BEHAVIOR""," + "\n" +
@"        ""result"" : {" + "\n" +
@"          ""mitigations"" : [ {" + "\n" +
@"            ""action"" : ""VERIFY""" + "\n" +
@"          } ]," + "\n" +
@"          ""type"" : ""MITIGATION""" + "\n" +
@"        }," + "\n" +
@"        ""condition"" : {" + "\n" +
@"          ""value"" : ""${details.userBasedRiskBehavior.level}""," + "\n" +
@"          ""equals"" : ""Medium""," + "\n" +
@"          ""type"" : ""VALUE_COMPARISON""" + "\n" +
@"        }" + "\n" +
@"      }," + "\n" +
@"      {" + "\n" +
@"        ""name"" : ""EMAIL_REPUTATION""," + "\n" +
@"        ""result"" : {" + "\n" +
@"          ""mitigations"" : [ {" + "\n" +
@"            ""action"" : ""MFA""," + "\n" +
@"            ""mfaAuthenticationPolicyId"" : ""{{deviceAuthenticationPolicyID}}""" + "\n" +
@"          } ]," + "\n" +
@"          ""type"" : ""MITIGATION""" + "\n" +
@"        }," + "\n" +
@"        ""condition"" : {" + "\n" +
@"          ""value"" : ""${details.emailReputation.level}""," + "\n" +
@"          ""equals"" : ""High""," + "\n" +
@"          ""type"" : ""VALUE_COMPARISON""" + "\n" +
@"        }" + "\n" +
@"      }," + "\n" +
@"      {" + "\n" +
@"        ""name"" : ""IP_REPUTATION""," + "\n" +
@"        ""result"" : {" + "\n" +
@"          ""mitigations"" : [ {" + "\n" +
@"            ""action"" : ""APPROVE""" + "\n" +
@"          } ]," + "\n" +
@"          ""type"" : ""MITIGATION""" + "\n" +
@"        }," + "\n" +
@"        ""condition"" : {" + "\n" +
@"          ""value"" : ""${details.ipRisk.level}""," + "\n" +
@"          ""equals"" : ""Low""," + "\n" +
@"          ""type"" : ""VALUE_COMPARISON""" + "\n" +
@"        }" + "\n" +
@"    }," + "\n" +
@"        {" + "\n" +
@"        ""name"" : ""FALLBACK""," + "\n" +
@"        ""result"" : {" + "\n" +
@"          ""mitigations"" : [ {" + "\n" +
@"            ""action"" : ""DENY""" + "\n" +
@"          } ]," + "\n" +
@"          ""type"" : ""MITIGATION_FALLBACK""" + "\n" +
@"        }" + "\n" +
@"      } " + "\n" +
@"    ]" + "\n" +
@"}";
request.AddStringBody(body, DataFormat.Json);
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io"
)

func main() {

  url := "{{apiPath}}/environments/{{envID}}/riskPolicySets"
  method := "POST"

  payload := strings.NewReader(`{
    "name": "Targeted policy without scores - for PingID users",
    "default": false,
    "defaultResult": {
        "level": "Low"
    },
    "targets":{
        "condition": { "and": [{
            "list": ["AUTHENTICATION", "AUTHORIZATION"],
            "contains": "${event.flow.type}"
          },
          {
            "list": ["Sales"],
            "contains": "${event.user.groups}"
          },
          {
            "list": ["6b6f867b-d768-4c2c-a9b6-6816da00d824", "845c9918-94d7-430c-b3d8-eafafc215fd9"],
            "contains": "${event.targetResource.id}"
          }]
        }
    },
    "riskPolicies": [{
        "name" : "USER_LOCATION_ANOMALY",
        "result" : {
          "mitigations" : [ {
            "action" : "CUSTOM",
            "customAction" : "CustomActionForUserLocationAnomaly"
          }],
          "type" : "MITIGATION"
        },
        "condition" : {
          "value" : "${details.userLocationAnomaly.level}",
          "equals" : "High",
          "type" : "VALUE_COMPARISON"
        }
      },
      {
        "name" : "VELOCITY",
        "result" : {
          "mitigations" : [ {
            "action" : "DENY_AND_SUSPEND"
          } ],
          "type" : "MITIGATION"
        },
        "condition" : {
          "value" : "${details.ipVelocityByUser.level}",
          "equals" : "High",
          "type" : "VALUE_COMPARISON"
        }
      },{
        "name" : "USER_RISK_BEHAVIOR",
        "result" : {
          "mitigations" : [ {
            "action" : "VERIFY"
          } ],
          "type" : "MITIGATION"
        },
        "condition" : {
          "value" : "${details.userBasedRiskBehavior.level}",
          "equals" : "Medium",
          "type" : "VALUE_COMPARISON"
        }
      },
      {
        "name" : "EMAIL_REPUTATION",
        "result" : {
          "mitigations" : [ {
            "action" : "MFA",
            "mfaAuthenticationPolicyId" : "{{deviceAuthenticationPolicyID}}"
          } ],
          "type" : "MITIGATION"
        },
        "condition" : {
          "value" : "${details.emailReputation.level}",
          "equals" : "High",
          "type" : "VALUE_COMPARISON"
        }
      },
      {
        "name" : "IP_REPUTATION",
        "result" : {
          "mitigations" : [ {
            "action" : "APPROVE"
          } ],
          "type" : "MITIGATION"
        },
        "condition" : {
          "value" : "${details.ipRisk.level}",
          "equals" : "Low",
          "type" : "VALUE_COMPARISON"
        }
    },
        {
        "name" : "FALLBACK",
        "result" : {
          "mitigations" : [ {
            "action" : "DENY"
          } ],
          "type" : "MITIGATION_FALLBACK"
        }
      }
    ]
}`)

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "Bearer {{accessToken}}")

  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := io.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
POST /environments/{{envID}}/riskPolicySets HTTP/1.1
Host: {{apiPath}}
Content-Type: application/json
Authorization: Bearer {{accessToken}}

{
    "name": "Targeted policy without scores - for PingID users",
    "default": false,
    "defaultResult": {
        "level": "Low"
    },
    "targets":{
        "condition": { "and": [{
            "list": ["AUTHENTICATION", "AUTHORIZATION"],
            "contains": "${event.flow.type}"
          },
          {
            "list": ["Sales"],
            "contains": "${event.user.groups}"
          },
          {
            "list": ["6b6f867b-d768-4c2c-a9b6-6816da00d824", "845c9918-94d7-430c-b3d8-eafafc215fd9"],
            "contains": "${event.targetResource.id}"
          }]
        }
    },
    "riskPolicies": [{
        "name" : "USER_LOCATION_ANOMALY",
        "result" : {
          "mitigations" : [ {
            "action" : "CUSTOM",
            "customAction" : "CustomActionForUserLocationAnomaly"
          }],
          "type" : "MITIGATION"
        },
        "condition" : {
          "value" : "${details.userLocationAnomaly.level}",
          "equals" : "High",
          "type" : "VALUE_COMPARISON"
        }
      },
      {
        "name" : "VELOCITY",
        "result" : {
          "mitigations" : [ {
            "action" : "DENY_AND_SUSPEND"
          } ],
          "type" : "MITIGATION"
        },
        "condition" : {
          "value" : "${details.ipVelocityByUser.level}",
          "equals" : "High",
          "type" : "VALUE_COMPARISON"
        }
      },{
        "name" : "USER_RISK_BEHAVIOR",
        "result" : {
          "mitigations" : [ {
            "action" : "VERIFY"
          } ],
          "type" : "MITIGATION"
        },
        "condition" : {
          "value" : "${details.userBasedRiskBehavior.level}",
          "equals" : "Medium",
          "type" : "VALUE_COMPARISON"
        }
      },
      {
        "name" : "EMAIL_REPUTATION",
        "result" : {
          "mitigations" : [ {
            "action" : "MFA",
            "mfaAuthenticationPolicyId" : "{{deviceAuthenticationPolicyID}}"
          } ],
          "type" : "MITIGATION"
        },
        "condition" : {
          "value" : "${details.emailReputation.level}",
          "equals" : "High",
          "type" : "VALUE_COMPARISON"
        }
      },
      {
        "name" : "IP_REPUTATION",
        "result" : {
          "mitigations" : [ {
            "action" : "APPROVE"
          } ],
          "type" : "MITIGATION"
        },
        "condition" : {
          "value" : "${details.ipRisk.level}",
          "equals" : "Low",
          "type" : "VALUE_COMPARISON"
        }
    },
        {
        "name" : "FALLBACK",
        "result" : {
          "mitigations" : [ {
            "action" : "DENY"
          } ],
          "type" : "MITIGATION_FALLBACK"
        }
      }
    ]
}
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n    \"name\": \"Targeted policy without scores - for PingID users\",\n    \"default\": false,\n    \"defaultResult\": {\n        \"level\": \"Low\"\n    },\n    \"targets\":{\n        \"condition\": { \"and\": [{\n            \"list\": [\"AUTHENTICATION\", \"AUTHORIZATION\"],\n            \"contains\": \"${event.flow.type}\"\n          },\n          { \n            \"list\": [\"Sales\"],\n            \"contains\": \"${event.user.groups}\"\n          },\n          { \n            \"list\": [\"6b6f867b-d768-4c2c-a9b6-6816da00d824\", \"845c9918-94d7-430c-b3d8-eafafc215fd9\"],\n            \"contains\": \"${event.targetResource.id}\"\n          }]\n        }\n    },\n    \"riskPolicies\": [{\n        \"name\" : \"USER_LOCATION_ANOMALY\",\n        \"result\" : {\n          \"mitigations\" : [ {\n            \"action\" : \"CUSTOM\",\n            \"customAction\" : \"CustomActionForUserLocationAnomaly\"\n          }],\n          \"type\" : \"MITIGATION\"\n        },\n        \"condition\" : {\n          \"value\" : \"${details.userLocationAnomaly.level}\",\n          \"equals\" : \"High\",\n          \"type\" : \"VALUE_COMPARISON\"\n        }\n      },\n      {\n        \"name\" : \"VELOCITY\",\n        \"result\" : {\n          \"mitigations\" : [ {\n            \"action\" : \"DENY_AND_SUSPEND\"\n          } ],\n          \"type\" : \"MITIGATION\"\n        },\n        \"condition\" : {\n          \"value\" : \"${details.ipVelocityByUser.level}\",\n          \"equals\" : \"High\",\n          \"type\" : \"VALUE_COMPARISON\"\n        }\n      },{\n        \"name\" : \"USER_RISK_BEHAVIOR\",\n        \"result\" : {\n          \"mitigations\" : [ {\n            \"action\" : \"VERIFY\"\n          } ],\n          \"type\" : \"MITIGATION\"\n        },\n        \"condition\" : {\n          \"value\" : \"${details.userBasedRiskBehavior.level}\",\n          \"equals\" : \"Medium\",\n          \"type\" : \"VALUE_COMPARISON\"\n        }\n      },\n      {\n        \"name\" : \"EMAIL_REPUTATION\",\n        \"result\" : {\n          \"mitigations\" : [ {\n            \"action\" : \"MFA\",\n            \"mfaAuthenticationPolicyId\" : \"{{deviceAuthenticationPolicyID}}\"\n          } ],\n          \"type\" : \"MITIGATION\"\n        },\n        \"condition\" : {\n          \"value\" : \"${details.emailReputation.level}\",\n          \"equals\" : \"High\",\n          \"type\" : \"VALUE_COMPARISON\"\n        }\n      },\n      {\n        \"name\" : \"IP_REPUTATION\",\n        \"result\" : {\n          \"mitigations\" : [ {\n            \"action\" : \"APPROVE\"\n          } ],\n          \"type\" : \"MITIGATION\"\n        },\n        \"condition\" : {\n          \"value\" : \"${details.ipRisk.level}\",\n          \"equals\" : \"Low\",\n          \"type\" : \"VALUE_COMPARISON\"\n        }\n    },\n        {\n        \"name\" : \"FALLBACK\",\n        \"result\" : {\n          \"mitigations\" : [ {\n            \"action\" : \"DENY\"\n          } ],\n          \"type\" : \"MITIGATION_FALLBACK\"\n        }\n      } \n    ]\n}");
Request request = new Request.Builder()
  .url("{{apiPath}}/environments/{{envID}}/riskPolicySets")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .addHeader("Authorization", "Bearer {{accessToken}}")
  .build();
Response response = client.newCall(request).execute();
var settings = {
  "url": "{{apiPath}}/environments/{{envID}}/riskPolicySets",
  "method": "POST",
  "timeout": 0,
  "headers": {
    "Content-Type": "application/json",
    "Authorization": "Bearer {{accessToken}}"
  },
  "data": JSON.stringify({
    "name": "Targeted policy without scores - for PingID users",
    "default": false,
    "defaultResult": {
      "level": "Low"
    },
    "targets": {
      "condition": {
        "and": [
          {
            "list": [
              "AUTHENTICATION",
              "AUTHORIZATION"
            ],
            "contains": "${event.flow.type}"
          },
          {
            "list": [
              "Sales"
            ],
            "contains": "${event.user.groups}"
          },
          {
            "list": [
              "6b6f867b-d768-4c2c-a9b6-6816da00d824",
              "845c9918-94d7-430c-b3d8-eafafc215fd9"
            ],
            "contains": "${event.targetResource.id}"
          }
        ]
      }
    },
    "riskPolicies": [
      {
        "name": "USER_LOCATION_ANOMALY",
        "result": {
          "mitigations": [
            {
              "action": "CUSTOM",
              "customAction": "CustomActionForUserLocationAnomaly"
            }
          ],
          "type": "MITIGATION"
        },
        "condition": {
          "value": "${details.userLocationAnomaly.level}",
          "equals": "High",
          "type": "VALUE_COMPARISON"
        }
      },
      {
        "name": "VELOCITY",
        "result": {
          "mitigations": [
            {
              "action": "DENY_AND_SUSPEND"
            }
          ],
          "type": "MITIGATION"
        },
        "condition": {
          "value": "${details.ipVelocityByUser.level}",
          "equals": "High",
          "type": "VALUE_COMPARISON"
        }
      },
      {
        "name": "USER_RISK_BEHAVIOR",
        "result": {
          "mitigations": [
            {
              "action": "VERIFY"
            }
          ],
          "type": "MITIGATION"
        },
        "condition": {
          "value": "${details.userBasedRiskBehavior.level}",
          "equals": "Medium",
          "type": "VALUE_COMPARISON"
        }
      },
      {
        "name": "EMAIL_REPUTATION",
        "result": {
          "mitigations": [
            {
              "action": "MFA",
              "mfaAuthenticationPolicyId": "{{deviceAuthenticationPolicyID}}"
            }
          ],
          "type": "MITIGATION"
        },
        "condition": {
          "value": "${details.emailReputation.level}",
          "equals": "High",
          "type": "VALUE_COMPARISON"
        }
      },
      {
        "name": "IP_REPUTATION",
        "result": {
          "mitigations": [
            {
              "action": "APPROVE"
            }
          ],
          "type": "MITIGATION"
        },
        "condition": {
          "value": "${details.ipRisk.level}",
          "equals": "Low",
          "type": "VALUE_COMPARISON"
        }
      },
      {
        "name": "FALLBACK",
        "result": {
          "mitigations": [
            {
              "action": "DENY"
            }
          ],
          "type": "MITIGATION_FALLBACK"
        }
      }
    ]
  }),
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
var request = require('request');
var options = {
  'method': 'POST',
  'url': '{{apiPath}}/environments/{{envID}}/riskPolicySets',
  'headers': {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer {{accessToken}}'
  },
  body: JSON.stringify({
    "name": "Targeted policy without scores - for PingID users",
    "default": false,
    "defaultResult": {
      "level": "Low"
    },
    "targets": {
      "condition": {
        "and": [
          {
            "list": [
              "AUTHENTICATION",
              "AUTHORIZATION"
            ],
            "contains": "${event.flow.type}"
          },
          {
            "list": [
              "Sales"
            ],
            "contains": "${event.user.groups}"
          },
          {
            "list": [
              "6b6f867b-d768-4c2c-a9b6-6816da00d824",
              "845c9918-94d7-430c-b3d8-eafafc215fd9"
            ],
            "contains": "${event.targetResource.id}"
          }
        ]
      }
    },
    "riskPolicies": [
      {
        "name": "USER_LOCATION_ANOMALY",
        "result": {
          "mitigations": [
            {
              "action": "CUSTOM",
              "customAction": "CustomActionForUserLocationAnomaly"
            }
          ],
          "type": "MITIGATION"
        },
        "condition": {
          "value": "${details.userLocationAnomaly.level}",
          "equals": "High",
          "type": "VALUE_COMPARISON"
        }
      },
      {
        "name": "VELOCITY",
        "result": {
          "mitigations": [
            {
              "action": "DENY_AND_SUSPEND"
            }
          ],
          "type": "MITIGATION"
        },
        "condition": {
          "value": "${details.ipVelocityByUser.level}",
          "equals": "High",
          "type": "VALUE_COMPARISON"
        }
      },
      {
        "name": "USER_RISK_BEHAVIOR",
        "result": {
          "mitigations": [
            {
              "action": "VERIFY"
            }
          ],
          "type": "MITIGATION"
        },
        "condition": {
          "value": "${details.userBasedRiskBehavior.level}",
          "equals": "Medium",
          "type": "VALUE_COMPARISON"
        }
      },
      {
        "name": "EMAIL_REPUTATION",
        "result": {
          "mitigations": [
            {
              "action": "MFA",
              "mfaAuthenticationPolicyId": "{{deviceAuthenticationPolicyID}}"
            }
          ],
          "type": "MITIGATION"
        },
        "condition": {
          "value": "${details.emailReputation.level}",
          "equals": "High",
          "type": "VALUE_COMPARISON"
        }
      },
      {
        "name": "IP_REPUTATION",
        "result": {
          "mitigations": [
            {
              "action": "APPROVE"
            }
          ],
          "type": "MITIGATION"
        },
        "condition": {
          "value": "${details.ipRisk.level}",
          "equals": "Low",
          "type": "VALUE_COMPARISON"
        }
      },
      {
        "name": "FALLBACK",
        "result": {
          "mitigations": [
            {
              "action": "DENY"
            }
          ],
          "type": "MITIGATION_FALLBACK"
        }
      }
    ]
  })

};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});
import requests
import json

url = "{{apiPath}}/environments/{{envID}}/riskPolicySets"

payload = json.dumps({
  "name": "Targeted policy without scores - for PingID users",
  "default": False,
  "defaultResult": {
    "level": "Low"
  },
  "targets": {
    "condition": {
      "and": [
        {
          "list": [
            "AUTHENTICATION",
            "AUTHORIZATION"
          ],
          "contains": "${event.flow.type}"
        },
        {
          "list": [
            "Sales"
          ],
          "contains": "${event.user.groups}"
        },
        {
          "list": [
            "6b6f867b-d768-4c2c-a9b6-6816da00d824",
            "845c9918-94d7-430c-b3d8-eafafc215fd9"
          ],
          "contains": "${event.targetResource.id}"
        }
      ]
    }
  },
  "riskPolicies": [
    {
      "name": "USER_LOCATION_ANOMALY",
      "result": {
        "mitigations": [
          {
            "action": "CUSTOM",
            "customAction": "CustomActionForUserLocationAnomaly"
          }
        ],
        "type": "MITIGATION"
      },
      "condition": {
        "value": "${details.userLocationAnomaly.level}",
        "equals": "High",
        "type": "VALUE_COMPARISON"
      }
    },
    {
      "name": "VELOCITY",
      "result": {
        "mitigations": [
          {
            "action": "DENY_AND_SUSPEND"
          }
        ],
        "type": "MITIGATION"
      },
      "condition": {
        "value": "${details.ipVelocityByUser.level}",
        "equals": "High",
        "type": "VALUE_COMPARISON"
      }
    },
    {
      "name": "USER_RISK_BEHAVIOR",
      "result": {
        "mitigations": [
          {
            "action": "VERIFY"
          }
        ],
        "type": "MITIGATION"
      },
      "condition": {
        "value": "${details.userBasedRiskBehavior.level}",
        "equals": "Medium",
        "type": "VALUE_COMPARISON"
      }
    },
    {
      "name": "EMAIL_REPUTATION",
      "result": {
        "mitigations": [
          {
            "action": "MFA",
            "mfaAuthenticationPolicyId": "{{deviceAuthenticationPolicyID}}"
          }
        ],
        "type": "MITIGATION"
      },
      "condition": {
        "value": "${details.emailReputation.level}",
        "equals": "High",
        "type": "VALUE_COMPARISON"
      }
    },
    {
      "name": "IP_REPUTATION",
      "result": {
        "mitigations": [
          {
            "action": "APPROVE"
          }
        ],
        "type": "MITIGATION"
      },
      "condition": {
        "value": "${details.ipRisk.level}",
        "equals": "Low",
        "type": "VALUE_COMPARISON"
      }
    },
    {
      "name": "FALLBACK",
      "result": {
        "mitigations": [
          {
            "action": "DENY"
          }
        ],
        "type": "MITIGATION_FALLBACK"
      }
    }
  ]
})
headers = {
  'Content-Type': 'application/json',
  'Authorization': 'Bearer {{accessToken}}'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
<?php
require_once 'HTTP/Request2.php';
$request = new HTTP_Request2();
$request->setUrl('{{apiPath}}/environments/{{envID}}/riskPolicySets');
$request->setMethod(HTTP_Request2::METHOD_POST);
$request->setConfig(array(
  'follow_redirects' => TRUE
));
$request->setHeader(array(
  'Content-Type' => 'application/json',
  'Authorization' => 'Bearer {{accessToken}}'
));
$request->setBody('{\n    "name": "Targeted policy without scores - for PingID users",\n    "default": false,\n    "defaultResult": {\n        "level": "Low"\n    },\n    "targets":{\n        "condition": { "and": [{\n            "list": ["AUTHENTICATION", "AUTHORIZATION"],\n            "contains": "${event.flow.type}"\n          },\n          { \n            "list": ["Sales"],\n            "contains": "${event.user.groups}"\n          },\n          { \n            "list": ["6b6f867b-d768-4c2c-a9b6-6816da00d824", "845c9918-94d7-430c-b3d8-eafafc215fd9"],\n            "contains": "${event.targetResource.id}"\n          }]\n        }\n    },\n    "riskPolicies": [{\n        "name" : "USER_LOCATION_ANOMALY",\n        "result" : {\n          "mitigations" : [ {\n            "action" : "CUSTOM",\n            "customAction" : "CustomActionForUserLocationAnomaly"\n          }],\n          "type" : "MITIGATION"\n        },\n        "condition" : {\n          "value" : "${details.userLocationAnomaly.level}",\n          "equals" : "High",\n          "type" : "VALUE_COMPARISON"\n        }\n      },\n      {\n        "name" : "VELOCITY",\n        "result" : {\n          "mitigations" : [ {\n            "action" : "DENY_AND_SUSPEND"\n          } ],\n          "type" : "MITIGATION"\n        },\n        "condition" : {\n          "value" : "${details.ipVelocityByUser.level}",\n          "equals" : "High",\n          "type" : "VALUE_COMPARISON"\n        }\n      },{\n        "name" : "USER_RISK_BEHAVIOR",\n        "result" : {\n          "mitigations" : [ {\n            "action" : "VERIFY"\n          } ],\n          "type" : "MITIGATION"\n        },\n        "condition" : {\n          "value" : "${details.userBasedRiskBehavior.level}",\n          "equals" : "Medium",\n          "type" : "VALUE_COMPARISON"\n        }\n      },\n      {\n        "name" : "EMAIL_REPUTATION",\n        "result" : {\n          "mitigations" : [ {\n            "action" : "MFA",\n            "mfaAuthenticationPolicyId" : "{{deviceAuthenticationPolicyID}}"\n          } ],\n          "type" : "MITIGATION"\n        },\n        "condition" : {\n          "value" : "${details.emailReputation.level}",\n          "equals" : "High",\n          "type" : "VALUE_COMPARISON"\n        }\n      },\n      {\n        "name" : "IP_REPUTATION",\n        "result" : {\n          "mitigations" : [ {\n            "action" : "APPROVE"\n          } ],\n          "type" : "MITIGATION"\n        },\n        "condition" : {\n          "value" : "${details.ipRisk.level}",\n          "equals" : "Low",\n          "type" : "VALUE_COMPARISON"\n        }\n    },\n        {\n        "name" : "FALLBACK",\n        "result" : {\n          "mitigations" : [ {\n            "action" : "DENY"\n          } ],\n          "type" : "MITIGATION_FALLBACK"\n        }\n      } \n    ]\n}');
try {
  $response = $request->send();
  if ($response->getStatus() == 200) {
    echo $response->getBody();
  }
  else {
    echo 'Unexpected HTTP status: ' . $response->getStatus() . ' ' .
    $response->getReasonPhrase();
  }
}
catch(HTTP_Request2_Exception $e) {
  echo 'Error: ' . $e->getMessage();
}
require "uri"
require "json"
require "net/http"

url = URI("{{apiPath}}/environments/{{envID}}/riskPolicySets")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)
request["Content-Type"] = "application/json"
request["Authorization"] = "Bearer {{accessToken}}"
request.body = JSON.dump({
  "name": "Targeted policy without scores - for PingID users",
  "default": false,
  "defaultResult": {
    "level": "Low"
  },
  "targets": {
    "condition": {
      "and": [
        {
          "list": [
            "AUTHENTICATION",
            "AUTHORIZATION"
          ],
          "contains": "\${event.flow.type}"
        },
        {
          "list": [
            "Sales"
          ],
          "contains": "\${event.user.groups}"
        },
        {
          "list": [
            "6b6f867b-d768-4c2c-a9b6-6816da00d824",
            "845c9918-94d7-430c-b3d8-eafafc215fd9"
          ],
          "contains": "\${event.targetResource.id}"
        }
      ]
    }
  },
  "riskPolicies": [
    {
      "name": "USER_LOCATION_ANOMALY",
      "result": {
        "mitigations": [
          {
            "action": "CUSTOM",
            "customAction": "CustomActionForUserLocationAnomaly"
          }
        ],
        "type": "MITIGATION"
      },
      "condition": {
        "value": "\${details.userLocationAnomaly.level}",
        "equals": "High",
        "type": "VALUE_COMPARISON"
      }
    },
    {
      "name": "VELOCITY",
      "result": {
        "mitigations": [
          {
            "action": "DENY_AND_SUSPEND"
          }
        ],
        "type": "MITIGATION"
      },
      "condition": {
        "value": "\${details.ipVelocityByUser.level}",
        "equals": "High",
        "type": "VALUE_COMPARISON"
      }
    },
    {
      "name": "USER_RISK_BEHAVIOR",
      "result": {
        "mitigations": [
          {
            "action": "VERIFY"
          }
        ],
        "type": "MITIGATION"
      },
      "condition": {
        "value": "\${details.userBasedRiskBehavior.level}",
        "equals": "Medium",
        "type": "VALUE_COMPARISON"
      }
    },
    {
      "name": "EMAIL_REPUTATION",
      "result": {
        "mitigations": [
          {
            "action": "MFA",
            "mfaAuthenticationPolicyId": "{{deviceAuthenticationPolicyID}}"
          }
        ],
        "type": "MITIGATION"
      },
      "condition": {
        "value": "\${details.emailReputation.level}",
        "equals": "High",
        "type": "VALUE_COMPARISON"
      }
    },
    {
      "name": "IP_REPUTATION",
      "result": {
        "mitigations": [
          {
            "action": "APPROVE"
          }
        ],
        "type": "MITIGATION"
      },
      "condition": {
        "value": "\${details.ipRisk.level}",
        "equals": "Low",
        "type": "VALUE_COMPARISON"
      }
    },
    {
      "name": "FALLBACK",
      "result": {
        "mitigations": [
          {
            "action": "DENY"
          }
        ],
        "type": "MITIGATION_FALLBACK"
      }
    }
  ]
})

response = http.request(request)
puts response.read_body
let parameters = "{\n    \"name\": \"Targeted policy without scores - for PingID users\",\n    \"default\": false,\n    \"defaultResult\": {\n        \"level\": \"Low\"\n    },\n    \"targets\":{\n        \"condition\": { \"and\": [{\n            \"list\": [\"AUTHENTICATION\", \"AUTHORIZATION\"],\n            \"contains\": \"${event.flow.type}\"\n          },\n          { \n            \"list\": [\"Sales\"],\n            \"contains\": \"${event.user.groups}\"\n          },\n          { \n            \"list\": [\"6b6f867b-d768-4c2c-a9b6-6816da00d824\", \"845c9918-94d7-430c-b3d8-eafafc215fd9\"],\n            \"contains\": \"${event.targetResource.id}\"\n          }]\n        }\n    },\n    \"riskPolicies\": [{\n        \"name\" : \"USER_LOCATION_ANOMALY\",\n        \"result\" : {\n          \"mitigations\" : [ {\n            \"action\" : \"CUSTOM\",\n            \"customAction\" : \"CustomActionForUserLocationAnomaly\"\n          }],\n          \"type\" : \"MITIGATION\"\n        },\n        \"condition\" : {\n          \"value\" : \"${details.userLocationAnomaly.level}\",\n          \"equals\" : \"High\",\n          \"type\" : \"VALUE_COMPARISON\"\n        }\n      },\n      {\n        \"name\" : \"VELOCITY\",\n        \"result\" : {\n          \"mitigations\" : [ {\n            \"action\" : \"DENY_AND_SUSPEND\"\n          } ],\n          \"type\" : \"MITIGATION\"\n        },\n        \"condition\" : {\n          \"value\" : \"${details.ipVelocityByUser.level}\",\n          \"equals\" : \"High\",\n          \"type\" : \"VALUE_COMPARISON\"\n        }\n      },{\n        \"name\" : \"USER_RISK_BEHAVIOR\",\n        \"result\" : {\n          \"mitigations\" : [ {\n            \"action\" : \"VERIFY\"\n          } ],\n          \"type\" : \"MITIGATION\"\n        },\n        \"condition\" : {\n          \"value\" : \"${details.userBasedRiskBehavior.level}\",\n          \"equals\" : \"Medium\",\n          \"type\" : \"VALUE_COMPARISON\"\n        }\n      },\n      {\n        \"name\" : \"EMAIL_REPUTATION\",\n        \"result\" : {\n          \"mitigations\" : [ {\n            \"action\" : \"MFA\",\n            \"mfaAuthenticationPolicyId\" : \"{{deviceAuthenticationPolicyID}}\"\n          } ],\n          \"type\" : \"MITIGATION\"\n        },\n        \"condition\" : {\n          \"value\" : \"${details.emailReputation.level}\",\n          \"equals\" : \"High\",\n          \"type\" : \"VALUE_COMPARISON\"\n        }\n      },\n      {\n        \"name\" : \"IP_REPUTATION\",\n        \"result\" : {\n          \"mitigations\" : [ {\n            \"action\" : \"APPROVE\"\n          } ],\n          \"type\" : \"MITIGATION\"\n        },\n        \"condition\" : {\n          \"value\" : \"${details.ipRisk.level}\",\n          \"equals\" : \"Low\",\n          \"type\" : \"VALUE_COMPARISON\"\n        }\n    },\n        {\n        \"name\" : \"FALLBACK\",\n        \"result\" : {\n          \"mitigations\" : [ {\n            \"action\" : \"DENY\"\n          } ],\n          \"type\" : \"MITIGATION_FALLBACK\"\n        }\n      } \n    ]\n}"
let postData = parameters.data(using: .utf8)

var request = URLRequest(url: URL(string: "{{apiPath}}/environments/{{envID}}/riskPolicySets")!,timeoutInterval: Double.infinity)
request.addValue("application/json", forHTTPHeaderField: "Content-Type")
request.addValue("Bearer {{accessToken}}", forHTTPHeaderField: "Authorization")

request.httpMethod = "POST"
request.httpBody = postData

let task = URLSession.shared.dataTask(with: request) { data, response, error in
  guard let data = data else {
    print(String(describing: error))
    return
  }
  print(String(data: data, encoding: .utf8)!)
}

task.resume()

Example Response

201 Created

{
    "_links": {
        "self": {
            "href": "https://api.pingone.eu/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/riskPolicySets/eb2769ed-bb27-473b-8134-95f9385a326f"
        },
        "environment": {
            "href": "https://api.pingone.eu/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"
        }
    },
    "id": "eb2769ed-bb27-473b-8134-95f9385a326f",
    "environment": {
        "id": "abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"
    },
    "name": "Targeted policy without scores - for PingID users",
    "createdAt": "2025-06-08T10:17:05.812Z",
    "updatedAt": "2025-06-08T10:17:05.812Z",
    "defaultResult": {
        "level": "LOW",
        "type": "VALUE"
    },
    "targets": {
        "condition": {
            "and": [
                {
                    "list": [
                        "AUTHENTICATION",
                        "AUTHORIZATION"
                    ],
                    "contains": "${event.flow.type}",
                    "type": "STRING_LIST"
                },
                {
                    "list": [
                        "Sales"
                    ],
                    "contains": "${event.user.groups}",
                    "type": "GROUPS_INTERSECTION"
                },
                {
                    "list": [
                        "6b6f867b-d768-4c2c-a9b6-6816da00d824",
                        "845c9918-94d7-430c-b3d8-eafafc215fd9"
                    ],
                    "contains": "${event.targetResource.id}",
                    "type": "STRING_LIST"
                }
            ],
            "type": "AND"
        }
    },
    "riskPolicies": [
        {
            "id": "f1bebb84-61dd-4b2b-97e3-f82f6187791b",
            "environment": {
                "id": "abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"
            },
            "policySet": {
                "id": "eb2769ed-bb27-473b-8134-95f9385a326f"
            },
            "name": "USER_LOCATION_ANOMALY",
            "priority": 1,
            "result": {
                "mitigations": [
                    {
                        "action": "CUSTOM",
                        "customAction": "CustomActionForUserLocationAnomaly"
                    }
                ],
                "type": "MITIGATION"
            },
            "condition": {
                "equals": "High",
                "value": "${details.userLocationAnomaly.level}",
                "type": "VALUE_COMPARISON"
            },
            "createdAt": "2025-06-08T10:17:05.812Z",
            "updatedAt": "2025-06-08T10:17:05.812Z"
        },
        {
            "id": "009caa89-a2b7-4b5c-bfea-e96c19200b93",
            "environment": {
                "id": "abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"
            },
            "policySet": {
                "id": "eb2769ed-bb27-473b-8134-95f9385a326f"
            },
            "name": "VELOCITY",
            "priority": 2,
            "result": {
                "mitigations": [
                    {
                        "action": "DENY_AND_SUSPEND"
                    }
                ],
                "type": "MITIGATION"
            },
            "condition": {
                "equals": "High",
                "value": "${details.ipVelocityByUser.level}",
                "type": "VALUE_COMPARISON"
            },
            "createdAt": "2025-06-08T10:17:05.812Z",
            "updatedAt": "2025-06-08T10:17:05.812Z"
        },
        {
            "id": "2d1a8403-6e99-4f3a-9ce2-4063125dc7bd",
            "environment": {
                "id": "abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"
            },
            "policySet": {
                "id": "eb2769ed-bb27-473b-8134-95f9385a326f"
            },
            "name": "USER_RISK_BEHAVIOR",
            "priority": 3,
            "result": {
                "mitigations": [
                    {
                        "action": "VERIFY"
                    }
                ],
                "type": "MITIGATION"
            },
            "condition": {
                "equals": "Medium",
                "value": "${details.userBasedRiskBehavior.level}",
                "type": "VALUE_COMPARISON"
            },
            "createdAt": "2025-06-08T10:17:05.812Z",
            "updatedAt": "2025-06-08T10:17:05.812Z"
        },
        {
            "id": "65e43c3b-67a5-41dd-85fe-91ce0372c9c8",
            "environment": {
                "id": "abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"
            },
            "policySet": {
                "id": "eb2769ed-bb27-473b-8134-95f9385a326f"
            },
            "name": "EMAIL_REPUTATION",
            "priority": 4,
            "result": {
                "mitigations": [
                    {
                        "action": "MFA",
                        "mfaAuthenticationPolicyId": "a3e7a1d1-90ea-4e63-aa81-23383ba1c004"
                    }
                ],
                "type": "MITIGATION"
            },
            "condition": {
                "equals": "High",
                "value": "${details.emailReputation.level}",
                "type": "VALUE_COMPARISON"
            },
            "createdAt": "2025-06-08T10:17:05.812Z",
            "updatedAt": "2025-06-08T10:17:05.812Z"
        },
        {
            "id": "a5880c20-fa83-4477-af6f-01af5829dfd0",
            "environment": {
                "id": "abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"
            },
            "policySet": {
                "id": "eb2769ed-bb27-473b-8134-95f9385a326f"
            },
            "name": "IP_REPUTATION",
            "priority": 5,
            "result": {
                "mitigations": [
                    {
                        "action": "APPROVE"
                    }
                ],
                "type": "MITIGATION"
            },
            "condition": {
                "equals": "Low",
                "value": "${details.ipRisk.level}",
                "type": "VALUE_COMPARISON"
            },
            "createdAt": "2025-06-08T10:17:05.812Z",
            "updatedAt": "2025-06-08T10:17:05.812Z"
        },
        {
            "id": "3d2c2dec-5f3e-4761-8b36-dde4c7ad49e9",
            "environment": {
                "id": "abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"
            },
            "policySet": {
                "id": "eb2769ed-bb27-473b-8134-95f9385a326f"
            },
            "name": "FALLBACK",
            "result": {
                "mitigations": [
                    {
                        "action": "DENY"
                    }
                ],
                "type": "MITIGATION_FALLBACK"
            },
            "createdAt": "2025-06-08T10:17:05.812Z",
            "updatedAt": "2025-06-08T10:17:05.812Z"
        }
    ],
    "default": false
}