Okta Identity Governance
/Management APIs
//
Replace a risk rule
Replaces a risk rule
The updatable attributes of a risk rule
PUT
curl -i -X PUT \
'https://okta-subdomain.pixtulate.com/governance/api/v1/risk-rules/{ruleId}' \
-H 'Content-Type: application/json' \
-d '{
"id": "rulb0oNGTSWTBKOLGLNR",
"name": "Process and Approve Payment",
"notes": "Process and Approve Payment note",
"description": "Process and Approve Payment",
"conflictCriteria": {
"and": [
{
"name": "list1",
"attribute": "principal.effective_grants",
"operation": "CONTAINS_ONE",
"value": {
"type": "ENTITLEMENTS",
"value": [
{
"id": "espo3v6xlwdtEX2il1d6",
"values": [
{
"id": "ento3v6xmkviXCltm1d6"
}
]
}
]
}
},
{
"name": "list2",
"attribute": "principal.effective_grants",
"operation": "CONTAINS_ALL",
"value": {
"type": "ENTITLEMENTS",
"value": [
{
"id": "espxf36xlwdtEX2il23e",
"values": [
{
"id": "ento3v6xk6nOq7lm51d6"
}
]
}
]
}
}
]
}
}'Risk rule success response
The id of the Okta user who created the resource
The ISO 8601 formatted date and time when the resource was created
The ISO 8601 formatted date and time when the object was last updated
The id of the Okta user who last updated the object
Resources that the risk rule applies to
Response
{ "id": "rulb0oNGTSWTBKOLGLNR", "name": "Process and Approve Payment", "description": "Process and Approve Payment", "type": "SEPARATION_OF_DUTIES", "status": "ACTIVE", "resources": [ { … } ], "lastUpdated": "2022-05-24T14:15:22Z", "createdBy": "00ub0oNGTSWTBKOLGLNR", "created": "2022-05-24T14:15:22Z", "lastUpdatedBy": "00ub0oNGTSWTBKOLGLNR", "conflictCriteria": { "and": [ … ] }, "_links": { "self": { … } } }