In MOTAR, a "course" is a data structure that a teacher can create. A course can contain any number of lessons.
Read a Course
GEThttps://api.motar.io/edu/v1/course
Retrieves a single course by ID.
Query Parameters
Name
Type
Description
courseId
string
The ID of the requested course.
Headers
Name
Type
Description
Authorization
string
Auth token generated by user login.
{ courseId: 'b1161645be4d7dafb73c5ba2a9be745c14a3b06c89ffa4e1de2b136125badcf6d853cccf49f5fed916b3bdbcd99d2dee04481ddcfec1a3295abf663405fc6dd6c25e2b33c23cc2177a9c117f7b4ed40a07$cb50983fb276183150f3bed45aa31bf8',
name:'Cool Course for Cool Kids', description:'A cool course that teaches kids to be cool.', profilePic:'5d691b8707d0161062eb8801', coverPhoto:null }
[{ "objectiveId": "a1ebfdc5328f33116dbfdc175239f1c5ed7c82f8dd7f7ba153b1b7f9ee8d914b0e3d86f88214ef7ea681d90633b5891e0f4f11aa3489da86d8204809dc0ad1ba15cfb2513747479f456953cc24536ef59e",
"name":"2.1.1 Progression in the Crew Chief Career Ladder", "lessonIds": ["ac5f1ba630fe00c29a1c938a22e80a8ba402e1e98b675c7c7d4b66a670c51007566eed9855d125cb270a6b5e963e447688da39561ab4bd3d200c903e3b67fb00afa8dd5a10569c490ab387b75f04c9b217"]
}]
Retrieves a courses and populates the course's levels, along with all lessons and child lessons in order.
If no student ID is provided in the query string, all lessons will show as unlocked. If a student ID is provided, the lock status of each lesson will be determined by the student's progress in the course against the lesson and/or level's prerequisites.
Query Parameters
Name
Type
Description
classId
string
An education class ID. A course ID OR class ID is required. If both are provided, class ID is ignored.
studentId
string
Optional ID of the student to check lock status for.
courseId
string
The ID of the requested course. A course ID OR class ID is required. If both are provided, class ID is ignored.