GET /api/v1/student/{studentId}/units/{studentUnitId}/resume

Retrieve the last accessed lesson and overall progress to allow students to resume exactly where they left off. Perfect for implementing "Continue Learning" features.

Path parameters

  • studentId string Required

    Unique identifier of the student

  • studentUnitId string Required

    Unique identifier of the student unit enrollment

Responses

  • 200 application/json

    Resume information retrieved successfully

    Hide response attributes Show response attributes object
    • message string Required

      Success message

    • success boolean Required

      Success status

    • resumeData object Required

      Resume information

      Hide resumeData attributes Show resumeData attributes object
      • studentUnitId string Required

        Student unit ID

      • lastLessonId string

        Last lesson ID

      • lastLessonTitle string

        Last lesson title

      • lastLessonProgress number

        Last lesson progress

      • overallProgress number Required

        Overall unit progress

      • totalLessons number Required

        Total lessons in unit

      • completedLessons number Required

        Completed lessons count

      • lastAccessedAt string Required

        Last accessed timestamp

  • 400 application/json

    Default bad request error 400 response

    Hide response attributes Show response attributes object
    • message string Required

      Response message

    • error string Required
    • statusCode number Required
  • 404

    Student unit not found

GET /api/v1/student/{studentId}/units/{studentUnitId}/resume
curl \
 --request GET 'http://localhost:3500/api/v1/student/uuid-string/units/uuid-string/resume'
Response examples (200)
{
  "message": "string",
  "success": true,
  "resumeData": {
    "studentUnitId": "uuid-string",
    "lastLessonId": "uuid-string",
    "lastLessonTitle": "Introduction to Arrays",
    "lastLessonProgress": 75,
    "overallProgress": 45,
    "totalLessons": 20,
    "completedLessons": 9,
    "lastAccessedAt": "2025-10-03T10:30:00.000Z"
  }
}
Response examples (400)
{
  "message": "string",
  "error": "string",
  "statusCode": 42.0
}