チャレンジ質問の設定

チャレンジ質問は、次を使用して更新されます。

  • /unauthservice/passwordreset GET: これは、ユーザーのチャレンジ質問を取得します。

  • /users/{uuid}/challengequestions PUT: チャレンジ質問の回答を更新します

ユーザーのチャレンジ質問の取得

cURLの例

curl  -H "Content-Type: application/json"  -X GET  https://pseudo.com/iam/governance/selfservice/api/v1/unauthservice/passwordreset?userId=jlong

PUTレスポンス本文

{
    		"challengeQuestions": [
       		 "What is the name of your pet?",
       		 "What is the city of your birth?",
       		 "What is your mother's maiden name?"
   		 ]
	   }

チャレンジ質問の回答の更新

cURLの例

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}/challengequestions

PUTリクエスト本文

{
  "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レスポンス本文

{
  "status": "success"
}