Course chapters

Update course chapter

Changed on

Update a chapter's title within a course.

Required permissions:

  • courses:update
patch/course_chapters/{id}

Request

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

Path parameters

id, string required
Example:chap_xxxxxxxxxxxxx

The unique identifier of the chapter to update (e.g., "chap_XXXXX").

Request body

object required

Parameters for UpdateChapter

title, string required

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

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