- Replace a policy branch rule
Replaces a rule in a policy branch.
Only applicable to ACCESS_POLICY type policies.
Specifies actions to be taken, or operations that may be allowed, if the rule conditions are satisfied.
Specifies conditions that must be met during policy evaluation to apply the rule. All policy conditions, as well as conditions for at least one rule must be met to apply the settings specified in the policy and the associated rule.
Whether or not the rule is active. Use the activate query parameter to set the status of a rule.
Specifies whether Okta created the policy rule (system=true). You can't delete policy rules that have system set to true.
- ASSURANCE
- AUTH_METHOD_CHAIN
- ID_PROOFING
curl -i -X PUT \
https://subdomain.okta.com/api/v1/policies/rst1d7xus97faIAgmti0/branches/rsb1d7xus97faIAgmti/rules/ruld3hJ7jZh4fn0st0g3 \
-H 'Content-Type: application/json' \
-d '{
"type": "ACCESS_POLICY",
"name": "Require MFA for high and medium risk sign-ins",
"conditions": {
"riskScore": {
"level": "MEDIUM"
},
"network": {
"connection": "ANYWHERE"
}
},
"actions": {
"appSignOn": {
"access": "ALLOW",
"verificationMethod": {
"type": "ASSURANCE",
"reauthenticateIn": "PT0S",
"constraints": [
{
"knowledge": {
"types": [
"PASSWORD"
]
},
"reauthenticateIn": "PT0S"
},
{
"possession": {
"userPresence": "REQUIRED",
"phishingResistant": "REQUIRED"
}
}
]
}
}
}
}'Success
Specifies actions to be taken, or operations that may be allowed, if the rule conditions are satisfied.
Specifies conditions that must be met during policy evaluation to apply the rule. All policy conditions, as well as conditions for at least one rule must be met to apply the settings specified in the policy and the associated rule.
Timestamp when the policy branch rule was last modified
Whether or not the rule is active. Use the activate query parameter to set the status of a rule.
Specifies whether Okta created the policy rule (system=true). You can't delete policy rules that have system set to true.
Policy rule type. Branch rules are only supported for ACCESS_POLICY policies.
- ASSURANCE
- AUTH_METHOD_CHAIN
- ID_PROOFING
{ "id": "rul5o1bcd47keNFq2xm", "status": "ACTIVE", "name": "Require MFA for high and medium risk sign-ins", "priority": 1, "created": "2026-04-02T11:00:00.000Z", "lastUpdated": "2026-05-06T17:00:00.000Z", "system": false, "conditions": { "riskScore": { … }, "network": { … } }, "actions": { "appSignOn": { … } }, "_links": { "self": { … } }, "type": "ACCESS_POLICY" }