Edit Security Questions
Edit Security questions and answers process functionality contains two steps:
Step 1: getSelfSecurityQuestionAnswers¶
The getSelfSecurityQuestionAnswers
endpoint is used to get current Security questions and answers of the user.
Request
Endpoint
ui/v1/getSelfSecurityQuestionAnswers
Method
POST
Body
{
"userId":"535"
}
Response
{
"records": [{
"id": 949,
"userId": 535,
"securityQuestionId": 1,
"answer": "11",
"createdDateTime": 1591734423000,
"lastUpdatedDateTime": 1596234631000,
"lastModifiedUserId": null,
"securityQuestion": null,
"message": null,
"email": null,
"mobile": null
}, {
"id": 950,
"userId": 535,
"securityQuestionId": 8,
"answer": "12",
"createdDateTime": 1591734423000,
"lastUpdatedDateTime": 1596234631000,
"lastModifiedUserId": null,
"securityQuestion": null,
"message": null,
"email": null,
"mobile": null
}, {
"id": 951,
"userId": 535,
"securityQuestionId": 16,
"answer": "13",
"createdDateTime": 1591734423000,
"lastUpdatedDateTime": 1596234631000,
"lastModifiedUserId": null,
"securityQuestion": null,
"message": null,
"email": null,
"mobile": null
}],
"recordCount": null,
"message": null
}
Step 2: updateUserSecurityQuestionAnswers¶
The updateUserSecurityQuestionAnswers
endpoint can be used to update the user's security questions and answers.
Request
Endpoint
ui/v1/updateUserSecurityQuestionAnswers
Method
POST
Body
[{
"id": 949,
"userId": 535,
"securityQuestionId": 1,
"answer": "11",
"createdDateTime": 1591734423000,
"lastUpdatedDateTime": 1596234631000,
"lastModifiedUserId": null,
"securityQuestion": null,
"message": null,
"email": null,
"mobile": null
}, {
"id": 950,
"userId": 535,
"securityQuestionId": 8,
"answer": "12",
"createdDateTime": 1591734423000,
"lastUpdatedDateTime": 1596234631000,
"lastModifiedUserId": null,
"securityQuestion": null,
"message": null,
"email": null,
"mobile": null
}, {
"id": 951,
"userId": 535,
"securityQuestionId": 16,
"answer": "13",
"createdDateTime": 1591734423000,
"lastUpdatedDateTime": 1596234631000,
"lastModifiedUserId": null,
"securityQuestion": null,
"message": null,
"email": null,
"mobile": null
}]
Response
[{
"id": 949,
"userId": 535,
"securityQuestionId": 1,
"answer": "Ase0iMuMiMLTcHKuxYlhgA==",
"createdDateTime": 1591734423000,
"lastUpdatedDateTime": 1596234631000,
"lastModifiedUserId": null,
"securityQuestion": null,
"message": {
"code": "64",
"type": {
"value": "Success",
"name": "SUCCESS"
},
"include_i_icon": false,
"description": "The Security Questions and Answers have been updated successfully."
},
"email": null,
"mobile": null
}, {
"id": 950,
"userId": 535,
"securityQuestionId": 8,
"answer": "c2tJUo0tFglkwUZFFnhxvg==",
"createdDateTime": 1591734423000,
"lastUpdatedDateTime": 1596234631000,
"lastModifiedUserId": null,
"securityQuestion": null,
"message": null,
"email": null,
"mobile": null
}, {
"id": 951,
"userId": 535,
"securityQuestionId": 16,
"answer": "gwb1X2EXA377aOaxwv2tUg==",
"createdDateTime": 1591734423000,
"lastUpdatedDateTime": 1596234631000,
"lastModifiedUserId": null,
"securityQuestion": null,
"message": null,
"email": null,
"mobile": null
}]
Updated As of Version 5.3.0.2