Lessons

Adds a lesson to a chapter

post/chapters/{chapter_id}/lessons

Request

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

Path parameters

chapter_id, string required

The chapter ID

Headers

Idempotency-Key, string

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

LessonRequest required
title, string

Lesson title (defaults to "Lesson N")

lesson_type, string

Lesson type (defaults to multimedia)

html_content, string nullable

Rich-text lesson body

video_url, string nullable

URL of the lesson's video

is_published, boolean

Response

Lesson created

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

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    4 more changes in this revision