Skip to main content

Course Lesson

{
"id": "integer",
"name": "string",
"type": "string",
"status": "string",
"comments_enabled": "boolean",
"completion_status": "string",
"course_id": "integer",
"section_id": "integer",
"html": "string",
"created_at": "string",
"created_by": {},
"medias": [],
"passing_grade": "integer",
"questions_order": [],
"questions": [],
"last_attempt": {}
}

Properties

NameTypeRequiredRestrictionsDescription
idintegerfalseread-onlyUnique integer value identifying this lesson course
namestringtruenoneName of the lesson course
typetypetruenoneEnum to define the course lesson type
statusstatusfalsenoneEnum to define the course lesson status.
Default: draft
comments_enabledbooleanfalsenoneEnable the comments on the current lesson; if enabled, the users can comment the current lesson.
Default: true
completion_statuscompletion_statusfalseread-onlyEnum to define the course lesson completion status for the user
course_idintegerfalseread-onlyUnique integer value identifying the course of the lesson
section_idintegerfalseread-onlyUnique integer value identifying the section of the lesson
textstringfalsewrite-onlyThe lesson course text.
Default: empty string.
Only available when creating or updating a lesson course
htmlstringfalseread-onlyThe lesson course text.
>Only available when getting a lesson course
created_atstring(date-time)falseread-onlyDatetime of lesson course creation
created_byUser Minimalfalseread-onlyThe lesson course creator
mediaslist(integer)falsenoneList of id of Media for the lesson course
passing_gradeintegerfalsenoneDefine the minimum percentage of score required for students to pass the quiz; default: 60
questions_orderlist(integer)falsewrite-onlyDefine the order of the questions for the lesson; should be a list of question ids
questionslist(Course Quiz Question)falseread-onlyList of Course Quiz Question for the lesson
last_attemptlist(Course Quiz Attempt)falseread-onlyLast Course Quiz Attempt by the current user in this lesson course.
The property contains all the questions the user has answered as these may have changed over time

Enumerated Values

PropertyValueDescription
typelessonLesson course of type lesson
typequizLesson course of type quiz
statusdraftLesson course status is draft (not yet published for all the users that joined the course)
statuspublishedLesson course status is published
completion_statusuncompletedLesson course completion status is uncompleted for the user
completion_statuscompletedLesson course completion status is completed for the user
completion_statusfailedLesson course completion status is failed for the user; for quiz