Get course content
course_content_getGet a course's lessons as EditorJS blocks (H2 headers are sections, H3 headers are units): the current version, or an older saved revision when you pass version (list revisions with course_version_list). This is the authoring source with each block's id and data; course_get returns the course's settings and fetch only its catalog summary. Returns {courseId, version, blocks}, plus savedAt for an older revision; version 0 with no blocks means nothing has been written yet, and a version number that does not exist is a not-found error. Read the current version before course_content_set so you can keep each block's id. To roll back, read the old version and write its blocks with course_content_set, which saves a new version rather than erasing history.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Course id. | |
| version | No | Saved version number to read (1 or higher, from course_version_list). Omit for the current version. |