Skip to main content
POST
JavaScript

Authorizations

Authorization
string
header
required

A company API key, company scoped JWT, app API key, or user OAuth token. You must prepend your key/token with the word 'Bearer', which will look like Bearer ***************************

Path Parameters

lesson_id
string
required

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

Body

application/json

Parameters for SubmitAssessment

answers
object[]
required

The list of answers to submit for each assessment question.

Response

A successful response

The result of a user's assessment attempt

created_at
string<date-time>
required

The datetime the assessment result was created.

Example:

"2023-12-01T05:00:00.401Z"

id
string
required

The unique identifier for the assessment result.

Example:

"crsar_xxxxxxxxxxxx"

lesson
object
required

The lesson this assessment result is for

result_correct
integer
required

The number of correct answers

Example:

42

result_grade
number
required

The grade achieved on the assessment

Example:

6.9

result_graded_questions
object
required

Array of graded questions with details

result_passing_grade
boolean
required

Whether the user achieved a passing grade

result_question_count
integer
required

The total number of questions in the assessment

Example:

42

score_percent
number
required

The percentage score achieved on the assessment

Example:

6.9

updated_at
string<date-time>
required

The datetime the assessment result was last updated.

Example:

"2023-12-01T05:00:00.401Z"

user
object
required

The user who took the assessment