curl --request POST \
--url https://api.example.com/api/onboarding \
--header 'Content-Type: application/json' \
--data '
{
"barExamTestDate": "<string>",
"targetScore": 123,
"studyHours": 123,
"currentScore": 123,
"challengingAreas": [
{}
],
"focusAreas": [
{}
],
"barExamPreparationMaterial": "<string>",
"additionalInfo": "<string>"
}
'{
"success": true,
"message": "<string>",
"data": {
"barExamTestDate": "<string>",
"targetScore": 123,
"currentScore": 123,
"studyHours": 123,
"challengingAreas": [
{}
],
"focusAreas": [
{}
],
"additionalInfo": "<string>",
"barExamPreparationMaterial": "<string>",
"studyPlan": {},
"completedAt": "<string>"
},
"error": "<string>",
"details": "<any>"
}Complete user onboarding and create personalized study plan
curl --request POST \
--url https://api.example.com/api/onboarding \
--header 'Content-Type: application/json' \
--data '
{
"barExamTestDate": "<string>",
"targetScore": 123,
"studyHours": 123,
"currentScore": 123,
"challengingAreas": [
{}
],
"focusAreas": [
{}
],
"barExamPreparationMaterial": "<string>",
"additionalInfo": "<string>"
}
'{
"success": true,
"message": "<string>",
"data": {
"barExamTestDate": "<string>",
"targetScore": 123,
"currentScore": 123,
"studyHours": 123,
"challengingAreas": [
{}
],
"focusAreas": [
{}
],
"additionalInfo": "<string>",
"barExamPreparationMaterial": "<string>",
"studyPlan": {},
"completedAt": "<string>"
},
"error": "<string>",
"details": "<any>"
}curl -X POST "https://api.example.com/api/onboarding?uuid=user123" \
-H "Content-Type: application/json" \
-d '{
"barExamTestDate": "2026-07-28",
"targetScore": 350,
"studyHours": 20,
"currentScore": 290,
"challengingAreas": ["Contracts", "Torts"],
"focusAreas": ["Constitutional Law", "Criminal Procedure"],
"barExamPreparationMaterial": "Barbri",
"additionalInfo": "Looking to improve essay writing skills"
}'
Show properties
{
"success": true,
"message": "Your study plan has been created successfully",
"data": {
"barExamTestDate": "2026-07-28",
"targetScore": 350,
"currentScore": 290,
"studyHours": 20,
"challengingAreas": ["Contracts", "Torts"],
"focusAreas": ["Constitutional Law", "Criminal Procedure"],
"additionalInfo": "Looking to improve essay writing skills",
"barExamPreparationMaterial": "Barbri",
"studyPlan": {
"name": "Decent Study Plan",
"weeks": 12,
"hoursPerWeek": 20
},
"completedAt": "2026-03-03T10:30:00.000Z"
}
}
true{
"error": "UUID is required in query parameters"
}
{
"error": "Missing required fields"
}
{
"error": "Failed to save onboarding data",
"details": {}
}