Skip to main content

Course

{
"id": "integer",
"name": "string",
"slug": "string",
"description": "string",
"type": "string",
"privacy": "string",
"enforce_lessons_order": "boolean",
"new_comment_notification_enabled": "boolean",
"image_original": "string",
"image_bigger": "string",
"image_big": "string",
"image_medium": "string",
"image_small": "string",
"join_status": "string",
"created_at": "string",
"created_by": {},
"categories": []
}

Properties

NameTypeRequiredRestrictionsDescription
idintegerfalseread-onlyUnique integer value identifying this course
namestringtruenoneUnique name of the course
slugstringfalsenoneUnique slug identifying this course in a URL
descriptionstringfalsenoneThe course description (default value: empty string)
typetypetruenoneEnum to define the course type
privacyprivacyfalsenoneEnum to define the course privacy (default value: empty string)
enforce_lessons_orderbooleanfalsenoneLesson order enforcement (default: false).
Your members will have to complete each lesson in order before moving onto the next one
new_comment_notification_enabledbooleanfalsenoneNotify course admins about new lesson comments (default: true).
If enabled, admins and moderators will receive a new comment notification anytime members leave a lesson comment
sections_orderlist(integer)falsenoneList of all section IDs belonging to the current course; IDs are sorted based on the choice made by the course managers
image_originalstringfalsenoneThe course profile image uploaded during course creation. Only for Create Course request body
image_biggerstringfalseread-onlySquared image - auto generated bigger size
image_bigstringfalseread-onlySquared image - auto generated big size
image_mediumstringfalseread-onlySquared image - auto generated medium size
image_smallstringfalseread-onlySquared image - auto generated small size
join_statusstatusfalseread-onlyEnum to define the course subscription status of the current user
created_atstring(date-time)falseread-onlyDatetime of course creation
created_byUserfalseread-onlyThe course creator
categorieslist(Category)falsenoneThe categories associated to the course

Enumerated Values

PropertyValueDescription
typeself-pacedCourse starts when a member enrolls. All contents are available immediately
typestructuredCourse starts when a member enrolls. Sections are dripped relative to their enrollment date
typescheduledCourse starts on a specific date. Sections are dripped relative to that date
privacyUnselected privacy status; cannot revert to this status after selecting another privacy status
privacyopenAccess: Open. Anyone in your community can see and join this course.
Visibility: Visible to all members of your community
privacyprivateAccess: Closed. Only members who are added by you will be able to access this course.
Visibility: Invited members only. Non-members will see the lock screen
privacysecretAccess: Closed. Only members who are added by you will be able to access this course.
Visibility: Invited members only. Non-members will not see that this course exists
join_statusnullThe user has no status
join_statusjoinedThe user joined the course
join_statusinvitedThe user was invited to the course
join_statusrequestedThe user requests access to the course (available when the course is closed)
join_statusmanagerThe user is a manager of the course and of course the user joined the course