<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z0000978RzECAUOkta Classic EngineAPI Access ManagementAnswered2024-06-03T09:00:32.000Z2023-04-27T08:59:22.000Z2023-04-28T15:17:52.000Z

g24ho (g24ho) asked a question.

API - create an Enrollement policy for Authenticators

Hello, I'm trying to use Postman to make API calls.

I have here a POST request because I need to create an enrollement policy applying to a particular group in my Okta tenant. Here is the endpoint that I'm calling : "api/v1/policies". You can see the output I get back for this purpose that is showing a status code of 500.

 

Any idea why ?

 

Image is not available


g24ho likes this.
  • Mihai N. (Okta, Inc.)

    Hi @g24ho (g24ho)​ , Thank you for reaching out to the Okta Community!

     

    I have not worked with the MFA Enrollment policies before, but looking at the collection on my end, the body seems to need to contain the factor types/authenticators as well. (See attached picture)

    image 

     

    Try adding the ones that you have enabled on your tenant in the body of your request as well and see if that works. 

     

     

     

     

    If my answers helped, remember to mark it as best to increase its visibility for other members of the Okta Community who might have the same questions as you. 

     

    Hope my answer helps! 

    --------------------------------

    Community members help others by clicking Like or Select as Best on responses. Try it today.

    Expand Post
This question is closed.
Loading
API - create an Enrollement policy for Authenticators