v8

OpenAPI 3.1.02026-08-033623795.0 MB
Course lessons

Submit assessment course lesson

Submit answers for a quiz or knowledge check lesson and receive a graded result.

post/course_lessons/{lesson_id}/submit_assessment

Path parameters

lesson_idstring required

The unique identifier of the quiz or knowledge check lesson to submit answers for (e.g., "les_XXXXX").

Request body

Response

A successful response

created_atstring date-time required

The datetime the assessment result was created.

idstring required

The unique identifier for the assessment result.

result_correctinteger required

The number of correct answers

result_gradenumber required

The grade achieved on the assessment

result_graded_questionsobject required

Array of graded questions with details

result_passing_gradeboolean required

Whether the user achieved a passing grade

result_question_countinteger required

The total number of questions in the assessment

score_percentnumber required

The percentage score achieved on the assessment

updated_atstring date-time required

The datetime the assessment result was last updated.

Example response

{
  "created_at": "2023-12-01T05:00:00.401Z",
  "id": "crsar_xxxxxxxxxxxx",
  "lesson": {
    "id": "lesn_xxxxxxxxxxxxx",
    "title": "Understanding Candlestick Patterns"
  },
  "result_correct": 42,
  "result_grade": 6.9,
  "result_question_count": 42,
  "score_percent": 6.9,
  "updated_at": "2023-12-01T05:00:00.401Z",
  "user": {
    "id": "user_xxxxxxxxxxxxx",
    "name": "John Doe",
    "username": "johndoe42"
  }
}