Evaluate a Decision Request
POST {{apiPath}}/environments/{{envID}}/decisionEndpoints/{{decisionEndpointID}}
The POST /environments/{{envID}}/decisionEndpoints/{{decisionEndpointID}}
operation executes a decision request against the decision endpoint specified by its ID in the request URL. The request body requires the parameters
property. The userContext
property is optional.
For property descriptions, see Policy decision evaluation request data model
Prerequisites
See PingOne Authorize and PingOne Authorize Policy Decision Service for important overview information.
Create a decision endpoint to get a
decisionEndpointID
. See Create Decision Endpoint. Run Read All Decision Endpoints to find an existing endpoint.Run an accept agreement request to get an
consentID
. See Accept Agreement. Run Read All User Agreement Consents to find an existing agreement.Create a user to get a
userID
. See Create User. Run Read All Users to find an existing user.
Property | Type? | Required? |
---|---|---|
parameters | Object | Required |
userContext.environment.id | UUID | Optional |
userContext.user.id | UUID | Optional |
Request Body
{"parameters"=>{"Policy Request"=>"payment", "Request - Payment.creditorName"=>"Customer2987", "Request - Payment.paymentAmount"=>"3000", "Request - Payment.consentId"=>"{{consentID}}"}, "userContext"=>{"user"=>{"id"=>"{{userID}}"}}}