create_lessons
Batch create Skilljar lessons for multiple courses at once. Choose HTML, modular, or quiz types, provide required content, and review failed rows independently.
Instructions
Create one or more lessons. This is a BATCH operation.
Pass a list even for a single lesson. Every item needs `course_id`, `title` and
`type`. Only three types can be created, and each requires ITS OWN content field
and forbids the others:
HTML -> content_html (non-empty)
MODULAR -> content_items (at most 15; at most one QUIZ and one RATING)
QUIZ -> quiz_id
`description_html` and `order` are optional; omit `order` and the lesson is
appended after the current last one.
Rows are processed independently - check `failed` before reporting success.
Requires the `lessons:write` OAuth scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lessons | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | ||
| note | Yes | ||
| total | Yes | ||
| failed | Yes | ||
| succeeded | Yes |