course_listsearch, status, cursor, limit | Courses in this portal, newest first. |
course_getcourseId, include | One course with its outline (sections and their lessons, in order, each lesson with its type, status and body version). include adds stats. Read it before changing the course or its outline. |
course_savecourseId, title, description, slug, thumbnail, status, baseVersion, idempotencyKey | Create a course (no courseId; title required) or change any of its details and release in one call. Only the fields you send change. New courses start as drafts. |
course_deletecourseId | Delete a course with all its sections and lessons. Confirm with the user first. |
outline_applycourseId, sections, delete, dryRun, idempotencyKey | Create, rename, reorder, move, publish or delete sections and lessons in one transaction. List sections (and a section's lessons) in the order you want them; new items get a key you choose and come back in idMap. Leaving an item out never deletes it; use delete. Bodies are written with lesson_write. |
lesson_getlessonId, view, from, to | A lesson and its body with the body version to send back as baseVersion. view: "full" (default), "outline" (text ids for lesson_edit text ops, or the question list) or "range" (body lines from–to, for a large lesson). |
lesson_writelessonId, sectionId, type, title, description, status, orderIndex, body, baseVersion, dryRun, idempotencyKey | Create a lesson (sectionId + type) or replace a lesson's whole body (lessonId + baseVersion). HTML you built as a local file: upload it (media_put localFile: true), then send body.ref: { libraryPath } instead of the text. The server adds the progress SDK to HTML lessons and checks that games report their score; problems come back as errors or warnings. dryRun checks without saving. For small changes use lesson_edit. |
lesson_editlessonId, baseVersion, ops | Small edits saved as one new version, without resending the body: replace (exact text that occurs once), text (wording only, by text id from lesson_get view outline; never changes structure or scripts), question (add / update / remove assessment questions) and config (assessment settings). |
lesson_deletelessonId | Delete one lesson (outline_apply's delete does the same in bulk). Confirm with the user first. |
sales_page_getcourseId | A course's public sales page HTML (the built-in template when it has none yet), its colour theme, the {{VARIABLES}} it may use and the baseVersion for sales_page_write. |
sales_page_writecourseId, html, theme, baseVersion, dryRun | Replace a course's sales page and/or its colour theme. Read it first and send its baseVersion. Known {{VARIABLES}} only; no scripts, iframes, forms or on* handlers. Live once saved. guide({ topic: "sales_page" }) has the rules. |