Lessons
Update lesson
Changed onUpdates 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 URLhttps://api.crevio.co/v1
- AuthAPI 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 #2to the request bodyallOflist - breaking
the request's body type changed from
objectto no type - warning
removed the request property
html_content
4 more changes in this revision
- breaking