curl --request PUT \
--url https://api.example.com/api/updateuserdata \
--header 'Content-Type: application/json' \
--data '
{
"barExamTestDate": "<string>",
"currentScore": 123,
"targetScore": 123,
"examResultFinal": "<string>"
}
'{
"barExamTestDate": "<string>",
"currentScore": 123,
"targetScore": 123,
"updatedAt": "<string>",
"examResultFinal": {
"passed": {}
},
"error": "<string>"
}Update user exam information and scores
curl --request PUT \
--url https://api.example.com/api/updateuserdata \
--header 'Content-Type: application/json' \
--data '
{
"barExamTestDate": "<string>",
"currentScore": 123,
"targetScore": 123,
"examResultFinal": "<string>"
}
'{
"barExamTestDate": "<string>",
"currentScore": 123,
"targetScore": 123,
"updatedAt": "<string>",
"examResultFinal": {
"passed": {}
},
"error": "<string>"
}"pass": User passed the exam"fail": User failed the exam"prefer-not": User prefers not to disclosecurl -X PUT "https://api.example.com/api/updateuserdata?uuid=user123" \
-H "Content-Type: application/json" \
-d '{
"barExamTestDate": "2026-07-28",
"currentScore": 310,
"targetScore": 350,
"examResultFinal": "pass"
}'
currentScore and targetScore must be between 260 and 400targetScore must be greater than or equal to currentScoreShow properties
true: User passed the examfalse: User failed the examnull: User prefers not to say{
"barExamTestDate": "2026-07-28",
"currentScore": 310,
"targetScore": 350,
"updatedAt": "2026-03-03T10:30:00.000Z",
"examResultFinal": {
"passed": true
},
"weeklyHours": 20,
"onboarded": true,
"progress": {
"constitutionalLaw": 45,
"contracts": 38,
"criminalLaw": 52,
"totalTimeSpent": 1200,
"testAttempts": 5,
"lastUpdated": "2026-03-02T18:45:00.000Z"
},
"StudyStreak": 7,
"PracticeQuestions": 234,
"questionDataKey": "decent"
}
{
"error": "UUID is required"
}
{
"error": "Invalid JSON format"
}
{
"error": "Missing required fields"
}
{
"error": "Scores must be between 260 and 400"
}
{
"error": "Target score must be greater than or equal to current score"
}
{
"error": "User not found"
}
{
"error": "Failed to update user data"
}
{
"error": "Internal server error"
}
updatedAt timestamp is automatically set to the current timeexamResultFinal field is only added if explicitly provided in the request