Update Sign-On Policy Action
PUT {{apiPath}}/environments/{{envID}}/signOnPolicies/{{policyID}}/actions/{{actionID}}
The PUT /environments/{{envID}}/signOnPolicies/{{policyID}}/actions/{{actionID}}
operation updates the sign-on policy action resource specified by its ID in the request URL.
Prerequisites
See Sign-On Policies and Sign-On Policy Actions for important overview information.
Create a sign-on policy to get a
policyID
for the endpoint.
Property | Type | Required? |
---|---|---|
priority | Integer | Required |
See the Sign-on policy actions base data model for full property descriptions.
Request Body
{"priority"=>2, "type"=>"PROGRESSIVE_PROFILING", "condition"=>{"or"=>[{"not"=>{"ipRange"=>["10.5.3.72/24"], "contains"=>"${flow.request.http.remoteIp}"}}, {"secondsSince"=>"${session.lastSignOn.withAuthenticator.pwd.at}", "greater"=>50400}, {"value"=>"${user.population.id}", "equals"=>"{{popID}}"}, {"value"=>"${user.email}", "equals"=>"joe@pingidentity.com"}, {"ipRisk"=>{"minScore"=>80, "maxScore"=>100}, "valid"=>"${flow.request.http.remoteIp}"}, {"geoVelocity"=>"${flow.request.http.remoteIp}", "valid"=>{"previousSuccessfulAuthenticationTime"=>"${user.lastSignOn.at}", "previousSuccessfulAuthenticationIp"=>"${user.lastSignOn.remoteIp}"}}]}, "promptText"=>"For the best experience, we need a couple things from you.", "promptIntervalSeconds"=>3600, "preventMultiplePromptsPerFlow"=>false}
RESPONSES
status: OK
{"_links":{"self":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/signOnPolicies/f73594d5-9b2e-45bf-abec-3f629ab53721/actions/3ede2d1f-0006-4206-85f8-8efd2dc4bdb2"},"environment":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"},"signOnPolicy":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/signOnPolicies/f73594d5-9b2e-45bf-abec-3f629ab53721"}},"id":"3ede2d1f-0006-4206-85f8-8efd2dc4bdb2","environment":{"id":"abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"},"type":"PROGRESSIVE_PROFILING","condition":{"or":[{"not":{"ipRange":["10.5.3.72/24"],"contains":"${flow.request.http.remoteIp}"}},{"secondsSince":"${session.lastSignOn.withAuthenticator.pwd.at}","greater":50400},{"value":"${user.population.id}","equals":"cb3ef0a0-0ff5-4f60-ae82-4ae65d9d0e3a"},{"value":"${user.email}","equals":"joe@pingidentity.com"},{"ipRisk":{"minScore":80,"maxScore":100},"valid":"${flow.request.http.remoteIp}"},{"geoVelocity":"${flow.request.http.remoteIp}","valid":{"previousSuccessfulAuthenticationTime":"${user.lastSignOn.at}","previousSuccessfulAuthenticationIp":"${user.lastSignOn.remoteIp}"}}]},"signOnPolicy":{"id":"f73594d5-9b2e-45bf-abec-3f629ab53721"},"priority":2,"preventMultiplePromptsPerFlow":false,"promptText":"For the best experience, we need a couple things from you.","promptIntervalSeconds":3600}