Lessons

Create lesson

Adds a lesson to a chapter

post/chapters/{chapter_id}/lessons

Request

  • Base URL: https://api.crevio.co/v1
  • URL: https://api.crevio.co/v1/chapters/{chapter_id}/lessons
  • Auth: API key in header Authorization

Path parameters

chapter_idstring required

The chapter ID

Headers

Idempotency-Keystring

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

titlestring

Lesson title (defaults to "Lesson N")

lesson_typestring

Lesson type (defaults to multimedia)

html_contentstring nullable

Rich-text lesson body

video_urlstring nullable

URL of the lesson's video

is_publishedboolean

Response

Lesson created

idstring required
objectstring required
titlestring required
positioninteger required
lesson_typestring required
publishedboolean required
published_atstring date-time nullable required
html_contentstring nullable required
chapterstring required
video_urlstring nullable required

Changes

No recorded changes to this operation across all 2 revisions of this API.