Create an Application Flow Policy Assignment
POST {{apiPath}}/environments/{{envID}}/applications/{{appID}}/flowPolicyAssignments
The POST /environments/{{envID}}/applications/{{appID}}/flowPolicyAssignments
operation creates a new flow policy assignment resource. The id
for the flowPolicy
property and the priority
property are required in the request body.
Prerequisites
See Application Flow Policy Assignments for important overview information.
Create an application to get an
appID
. See Application Operations.Get the list of flow policies available in this environment to specify a flow policy
flowPolicy.id
. See Read All Flow Policies.
Property | Type | Required? |
---|---|---|
flowPolicy.id | String | Required |
priority | Integer | Required |
For full property descriptions, see the Application flow policy assignments data model.
Request Body
{"priority"=>1, "flowPolicy"=>{"id"=>"{{flowPolicyID}}"}}
RESPONSES
status: Created
{"_links":{"self":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/applications/774f7201-ca91-43a8-9d15-1bf48068cdd2/flowPolicyAssignments/6f778330-f4b2-4581-a50a-fa9ff988c658"},"environment":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"},"application":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/applications/774f7201-ca91-43a8-9d15-1bf48068cdd2"}},"id":"6f778330-f4b2-4581-a50a-fa9ff988c658","application":{"id":"774f7201-ca91-43a8-9d15-1bf48068cdd2"},"environment":{"id":"abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"},"flowPolicy":{"id":"831534fda10cdc0d17b0188e31d1fd75"},"priority":1}