Course chapters

Create course chapter

Changed on

Create a new chapter within a course to organize lessons into sections.

Required permissions:

  • courses:update
post/course_chapters

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Request body

object required

Parameters for CreateChapter

course_id, string required

The unique identifier of the course to create the chapter in (for example, "cors_XXXXX").

title, string nullable

The display title of the chapter (e.g., "Module 1: Introduction").

Example request

{
  "course_id": "cors_xxxxxxxxxxxxx"
}

Response

A successful response

CourseChapter required

A grouping of related lessons within a course, used to organize content into sections.

id, string required

The unique identifier for the chapter.

lessons, object[] required

An ordered list of lessons in this chapter, sorted by display position. Hidden lessons are excluded for non-admin users.

order, integer required

The sort position of this chapter within its parent course, starting from zero.

title, string required

The display name of the chapter shown to students. Maximum 150 characters.

Example response

{
  "id": "chap_xxxxxxxxxxxxx",
  "lessons": [
    {
      "id": "lesn_xxxxxxxxxxxxx",
      "order": 42,
      "title": "Preparing Paint for Ceramic Coating"
    }
  ],
  "order": 42,
  "title": "Getting Started"
}

Changes