Courses

Update a course's title, description, visibility, thumbnail, or chapter ordering.

Required permissions:

  • courses:update
patch/courses/{id}

Request

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

Path parameters

id, string required
Example:cors_xxxxxxxxxxxxx

The unique identifier of the course to update (for example, "cors_XXXXX").

Request body

object required

Parameters for UpdateCourse

certificate_after_completion_enabled, boolean nullable

Whether the course awards students a PDF certificate after completing all lessons.

chapters, object[] nullable

A list of chapters with nested lessons to reorder or rename in bulk.

description, string nullable

A short description of the course displayed to students on the course page.

language, 'en' | 'es' | 'it' | 'pt' | 'de' | 'fr' | 'pl' | 'ru' | 'nl' | 'ca' | 'tr' | 'sv' | 'uk' | 'no' | 'fi' | 'sk' | 'el' | 'cs' | 'hr' | 'da' | 'ro' | 'bg' nullable

The available languages for a course

order, string nullable

The decimal order position of the course within its experience. Use fractional values (e.g., "1.5") to place between existing courses.

require_completing_lessons_in_order, boolean nullable

Whether students must complete each lesson sequentially before advancing to the next one.

tagline, string nullable

A short tagline displayed beneath the course title (e.g., "Master the fundamentals of design").

thumbnail, object nullable

The thumbnail image for the course in PNG, JPEG, or GIF format.

title, string nullable

The display title of the course (e.g., "Introduction to Web Development").

visibility, 'visible' | 'hidden' nullable

The available visibilities for a course. Determines how / whether a course is visible to users.

Example request

{
  "chapters": [
    {
      "lessons": [
        {
          "chapter_id": "chap_xxxxxxxxxxxxx",
          "order": 42
        }
      ],
      "order": 42
    }
  ],
  "order": "123.45"
}

Response

A successful response

Course required

A structured learning module containing chapters and lessons, belonging to an experience.

certificate_after_completion_enabled, boolean nullable required

Whether students receive a PDF certificate after completing all lessons in this course. Null if the setting has not been configured.

chapters, object[] required

An ordered list of all chapters in this course, sorted by their display position.

chapters_count, integer required

The total number of chapters in this course, including chapters whose lessons are all hidden from the current user.

completed_lessons_count, integer required

The number of lessons in this course that the current user has marked as completed. Zero when the request is not made on behalf of a user.

cover_image, string nullable required

The URL of the course cover image shown on preview cards. Null if no cover image has been uploaded.

created_at, string date-time required

The datetime the course was created.

description, string nullable required

A brief summary of the course content and objectives. Null if no description has been set.

experience, object required

The parent experience that this course belongs to.

id, string required

The unique identifier for the course.

language, 'en' | 'es' | 'it' | 'pt' | 'de' | 'fr' | 'pl' | 'ru' | 'nl' | 'ca' | 'tr' | 'sv' | 'uk' | 'no' | 'fi' | 'sk' | 'el' | 'cs' | 'hr' | 'da' | 'ro' | 'bg' required

The spoken language of the video content, used to generate accurate closed captions. One of: en, es, it, pt, de, fr, pl, ru, nl, ca, tr, sv, uk, no, fi, sk, el, cs, hr, da, ro, bg.

latest_lesson_created_at, string date-time nullable required

The creation timestamp of the most recently added lesson visible to the current user. Null if the course has no lessons.

lesson_unlock_days, integer[] required

The distinct drip schedules, in days after the course start, of lessons visible to the current user. Combine with startedAt to work out which have unlocked. Empty when the user has not started the course or no lesson is on a schedule.

order, string required

The sort position of this course within its parent experience, as a decimal for flexible ordering.

require_completing_lessons_in_order, boolean required

Whether students must complete each lesson sequentially before advancing to the next one.

resume_lesson, object nullable required

The lesson the current user should continue from: their first incomplete lesson, or the first lesson when they have finished the course, have not started it, or can edit it. Null if the course has no lessons.

started_at, string date-time nullable required

The earliest time the current user is known to have started this course. Null if they have not started it. Drip unlock schedules are measured from this point.

tagline, string nullable required

A short marketing tagline displayed beneath the course title. Null if no tagline has been set.

thumbnail, object nullable required

The thumbnail image displayed on course cards and previews. Null if no thumbnail has been uploaded.

title, string nullable required

The display name of the course shown to students. Null if no title has been set.

total_duration_seconds, integer required

The combined duration in seconds of every hosted video across the lessons visible to the current user.

total_lessons_count, integer required

The number of lessons in this course visible to the current user.

updated_at, string date-time required

The datetime the course was last updated.

visibility, 'visible' | 'hidden' required

The visibility setting that controls whether this course appears to students. One of: visible, hidden.

Example response

{
  "chapters": [
    {
      "id": "chap_xxxxxxxxxxxxx",
      "lessons": [
        {
          "id": "lesn_xxxxxxxxxxxxx",
          "order": 42,
          "thumbnail": {
            "url": "https://media.whop.com/abc123/optimized.jpg"
          },
          "title": "Preparing Paint for Ceramic Coating",
          "video_asset": {
            "duration_seconds": 42
          }
        }
      ],
      "order": 42,
      "title": "Getting Started"
    }
  ],
  "chapters_count": 42,
  "completed_lessons_count": 42,
  "cover_image": "https://assets.whop.com/images/course-cover.jpg",
  "created_at": "2023-12-01T05:00:00.401Z",
  "description": "Learn paint correction and ceramic coating techniques from experienced detailers.",
  "experience": {
    "id": "exp_xxxxxxxxxxxxxx"
  },
  "id": "cors_xxxxxxxxxxxxx",
  "latest_lesson_created_at": "2023-12-01T05:00:00.401Z",
  "lesson_unlock_days": [
    42
  ],
  "order": "123.45",
  "resume_lesson": {
    "id": "lesn_xxxxxxxxxxxxx"
  },
  "started_at": "2023-12-01T05:00:00.401Z",
  "tagline": "Learn to protect a showroom finish",
  "thumbnail": {
    "content_type": "image/jpeg",
    "filename": "document.pdf",
    "optimized_url": "https://media.whop.com/abc123/optimized.jpg",
    "source_url": "https://media.whop.com/abc123/original.jpg"
  },
  "title": "Introduction to Ceramic Coating",
  "total_duration_seconds": 42,
  "total_lessons_count": 42,
  "updated_at": "2023-12-01T05:00:00.401Z"
}

Changes

    • info

      added the required property experience to the response with the status

    • info

      added the required property chapters_count to the response with the status

    • info

      added the required property completed_lessons_count to the response with the status

    6 more changes in this revision