Education

Api Learning Daily Practice Complete

Submit a completed daily-practice session.

Body: {answers: [{module_id: str, chosen_index: int, category: str}]}

#96 (2026-08-13): this line used to read {questions_answered: int, correct_count: int}. It is the endpoint's PUBLIC OpenAPI description, so leaving it would have advertised a body the handler now refuses — the api-docs equivalent of the defect being fixed. Sessions are graded SERVER-SIDE against the answer key; a caller supplies only what it chose.

Updates user_daily_practice_log (questions answered today) and bumps user_daily_streaks (+1 if today is day-after-last-practice, reset to 1 if there was a gap). Returns the new streak values + the refreshed 7-day ring.

post/api/learning/daily-practice/complete

Request

  • Base URL: https://www.oxfordledge.com (the document declares no server; this is the origin it was published from)
  • URL: https://www.oxfordledge.com/api/learning/daily-practice/complete
  • Auth: none declared

Response

Successful Response

okboolean required

Always True on the success path; route returns api_error on failures.

current_streakinteger required

Updated daily streak count.

longest_streakinteger required

User's all-time longest streak.

streak_changedboolean required

True when this submission moved current_streak.

recall_todayinteger required

Total recall-correct answers logged today.

recall_attestedboolean required

True when client sent recall_correct_count (post-S55 client).

Changes

No recorded changes to this operation across all 1 revision of this API.