update_lesson
Modify an existing lesson's fields—title, content, type, skills, resources, and more—with support for mixed content blocks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Lesson type (optional) | |
| image | No | Lesson image URL (optional) | |
| title | Yes | Lesson title (required, automatically generates slug) | |
| skills | No | Array of skill IDs from libservice (optional, can be empty array) | |
| content | No | Main lesson content (HTML/Markdown, required if contentType !== "mixed") | |
| isDraft | No | Is draft (optional, default: true) | |
| duration | No | Lesson duration in minutes (optional, default: 0) | |
| lessonId | Yes | Lesson ID for update | |
| videoUrl | No | Video URL (for video type lessons) | |
| resources | No | Additional resources | |
| contentType | Yes | Content type (optional) | |
| description | No | Lesson description (optional) | |
| professions | No | Array of profession IDs from libservice (optional, can be empty array) | |
| contentBlocks | No | Content blocks (required if contentType === "mixed") | |
| practiceExercises | No | Practice exercises |