Lessons

Updates a lesson's fields. position reorders it within its chapter, and chapter_id moves it to another chapter of the same course (at position, or last). The lessons it leaves and joins are renumbered. Any other field is refused with a 400 parameter_unknown.

patch/lessons/{id}

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

id, string required

The resource's ID, as returned in its id field

Request body

intersection required
object
position, integer

0-based place within the chapter. Values past the end put the lesson last.

chapter_id, string

Chapter (chap_…) of the same course to move the lesson to. Progress and files move with it.

Response

Lesson updated

Lesson required
id, string required
object, string required
title, string required
position, integer required
lesson_type, string required
published, boolean required
published_at, string date-time nullable required
html_content, string nullable required
chapter, string required
video_url, string nullable required
files, object[] required

Changes

    • breaking

      added subschema #2 to the request body allOf list

    • breaking

      the request's body type changed from object to no type

    • warning

      removed the request property html_content

    4 more changes in this revision