Set Challenge Questions
The challenge questions are updated via:
-
/unauthservice/passwordreset GET: This retrieves the challenge questions for the user.
-
/users/{uuid}/challengequestions PUT: Update answers to challenge questions
Retrieves the Challenge Questions for the User
cURL Example
curl -H "Content-Type: application/json" -X GET https://pseudo.com/iam/governance/selfservice/api/v1/unauthservice/passwordreset?userId=jlong
PUT Response Body
{
"challengeQuestions": [
"What is the name of your pet?",
"What is the city of your birth?",
"What is your mother's maiden name?"
]
}Update Answers to Challenge Questions
cURL Example
curl -H "Content-Type: application/json" -H "X-Requested-By: <anyvalue>" ?X PUT ?u username:password ?d @put.json https://pseudo.com/iam/governance/selfservice/api/v1/users/
{uuid}/challengequestionsPUT Request Body
{
"challengeQuestions":[
{
"name": "What is the name of your pet?",
"value": "pet"
},
{
"name": "What is your mother's maiden name?",
"value": "name"
},
{
"name": "What is the city of your birth?",
"value": "city"
}
]
}PUT Response Body
{
"status": "success"
}