Step 7: Assign the MFA sign-on policy to the web application

POST {{apiPath}}/environments/{{envID}}/applications/{{webAppId}}/signOnPolicyAssignments

To use the new sign-on policy, the POST /environments/{{envID}}/applications/{{appID}}/signOnPolicyAssignments operation assigns the new MFA sign-on policy to the application designated by its ID in the request URL. The request body specifies the sign-on policy property id and an integer value for the priority property.

Request Body

{"priority"=>1, "signOnPolicy"=>{"id"=>"{{mfaPolicyID}}"}}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Content-Typestring