-
Notifications
You must be signed in to change notification settings - Fork 0
CourseLesson
A course lesson is an individual unit of content (video, text, or assessment) within a course chapter. Beyond CRUD, the SDK exposes lifecycle actions for a student progressing through a lesson — starting it, marking it complete, and submitting an assessment.
$client->courseLessons // Matchable\Whop\Resource\CourseLessonResource| HTTP | POST course-lessons |
| Does | Creates a new course lesson. |
| Parameters |
$data — lesson attributes (e.g. chapter ID, title, content, type). |
| Returns | array |
| HTTP | GET course-lessons |
| Does | Lists course lessons. |
| Parameters |
$query — optional filters / pagination. |
| Returns | array |
| HTTP | GET course-lessons/{id} |
| Does | Retrieves a single course lesson by ID. |
| Parameters |
$id — the course lesson ID. |
| Returns | array |
| HTTP | PATCH course-lessons/{id} |
| Does | Updates a course lesson. |
| Parameters |
$id — the course lesson ID; $data — fields to change. |
| Returns | array |
| HTTP | POST course-lessons/{id}/start |
| Does | Marks a lesson as started for the current student. |
| Parameters |
$id — the course lesson ID. |
| Returns | array |
| HTTP | POST course-lessons/{id}/mark-as-completed |
| Does | Marks a lesson as completed for the current student. |
| Parameters |
$id — the course lesson ID. |
| Returns | array |
| HTTP | POST course-lessons/{id}/submit-assessment |
| Does | Submits an assessment (e.g. quiz answers) for an assessment-type lesson. |
| Parameters |
$id — the course lesson ID; $data — the assessment submission payload. |
| Returns | array |
| HTTP | DELETE course-lessons/{id} |
| Does | Deletes a course lesson. |
| Parameters |
$id — the course lesson ID. |
| Returns | array |
$client->courseLessons->markAsCompleted('lesson_...');Official Whop documentation: https://docs.whop.com
Core Company · AccountLink · File · AccessToken · AuthorizedUser · User · Member · Webhook
Payments & Billing Payment · Checkout · Plan · Product · Membership · Refund · Invoice · PromoCode · PaymentMethod · SetupIntent
Platform & Finance Transfer · FeeMarkup · Topup · Withdrawal · LedgerAccount · PayoutAccount · PayoutMethod
Disputes Dispute · DisputeAlert · ResolutionCenter
Commerce Shipment · Lead · Entry · Review · Affiliate · Stats
Experiences & Courses Experience · Course · CourseChapter · CourseLesson · CourseLessonInteraction · CourseStudent
Communication ChatChannel · DmChannel · DmMember · Message · Reaction · Forum · ForumPost · SupportChannel · Notification
Advertising AdCampaign · AdGroup · Ad
Apps & AI App · AppBuild · AiChat · CompanyTokenTransaction
Verifications Verification