Lessons
List Lessons
Retrieve all lessons in a classroom or facility.GET /api/lessons/lesson
Query Parameters
Filter by collection (classroom) UUID
Filter by specific lesson ID
Response Fields
Lesson unique identifier
Lesson title
Lesson description
Array of resource objects with contentnode_id, content_id, channel_id
Whether the lesson is currently active
UUID of the classroom/collection
Classroom object with id, name, and parent
UUID of the user who created the lesson
ISO 8601 timestamp of creation
Array of collection UUIDs (groups) assigned to
Array of individual learner UUIDs assigned to
Get Lesson
Retrieve details of a specific lesson.GET /api/lessons/lesson/:id
Create Lesson
Create a new lesson.POST /api/lessons/lesson
Request Parameters
Lesson title
Lesson description
Array of resource objects, each containing contentnode_id, content_id, and channel_id
Whether lesson is active (default: true)
UUID of the classroom this lesson belongs to
Array of collection (group) UUIDs to assign this lesson to
Array of individual learner UUIDs to assign this lesson to
Update Lesson
Update an existing lesson.PATCH /api/lessons/lesson/:id
Delete Lesson
Delete a lesson.DELETE /api/lessons/lesson/:id
Get Lesson Size
Calculate the total size of all resources in lessons.GET /api/lessons/lesson/size
Response
Returns an array of objects with lesson IDs as keys and sizes in bytes as values:Lesson Resources
Resources are embedded in the lesson object. Each resource contains:UUID of the content node
Content identifier
Channel UUID
Lesson Assignments
Lesson assignments determine which learners or groups can access a lesson. They are managed through theassignments and learner_ids fields on the Lesson object:
- assignments: Array of collection (group) UUIDs - assigns the lesson to all members of these groups
- learner_ids: Array of individual learner UUIDs - assigns the lesson to specific learners directly