Hi,
I am trying to use Enroll and auto-activate Okta Email Factor API. My end goal is to avoid the verification email being sent to user and just allow a user to directly receive code on their email.
Request : https://okta-domain/api/v1/users/{user-details}/factors?activate=true
Request Body : {
“factorType”: “email”,
“provider”: “OKTA”,
“profile”: {
“email”: “test@gmail.com”
}
}
When I tried using the API got the below error in response:
{
“errorCode”: “E0000001”,
“errorSummary”: “Api validation failed: factorEnrollRequest”,
“errorLink”: “E0000001”,
“errorId”: “oae7oZ1xyRmSZaTB8aOC-fzIg”,
“errorCauses”: [
{
“errorSummary”: “A factor of this type is already set up.”
}
]
}
Please let me know if anyone can suggest something.
Thanks