Chapters

Adds a chapter to a course experience, last by default. A position inserts it at that index and renumbers the other chapters from 0.

post/experiences/{experience_id}/chapters

Request

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

Path parameters

experience_id, string required

The experience 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

ChapterRequest required
title, string

Chapter title (defaults to "Chapter N")

position, integer

Zero-based ordinal among the course's chapters

Response

Chapter created

Chapter required
id, string required
object, string required
title, string required
position, integer required
lessons, Lesson[] 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