Update Security Questions API
Welcome to the documentation for the Update Security Questions API. This API helps user's update security questions for authentication.
Base URL
{baseURL}/v1/users/update-security-questions | PUT
Authorization
Include the following Authorization header in your HTTP requests using a Bearer token:
Authorization: Bearer YOUR_ACCESS_TOKEN
Request Payload
Field | Type | Source | Required | Description |
---|---|---|---|---|
security_questions | array | body | ✅ Yes | Array of security questions and answers. |
- question | string | array | ✅ Yes | Unique identifier for the security question. |
- answer | string | array | ✅ Yes | User's answer to the security question. |
Sample Request
curl -X PUT {baseURL}/v1/users/update-security-questions \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"security_questions": [
{
"question": "6408750686aba885d609e702",
"answer": "111"
},
{
"question": "6408750686aba885d609e703",
"answer": "1113"
},
{
"question": "6408750686aba885d609e704",
"answer": "1112"
}
]
}'
Sample 200 Response
{
"message": "Security questions updated successfully",
"success": true
}