v8
OpenAPI 3.1.02026-08-033623795.0 MBCourse lessons
Create course lesson
Create a new lesson within a course chapter. Lessons can contain video, text, or assessment content.
Required permissions:
- courses:update
post/course_lessons
Request body
Example request
{
"chapter_id": "chap_xxxxxxxxxxxxx",
"days_from_course_start_until_unlock": 42
}Response
A successful response
Example response
{
"assessment_questions": [
{
"created_at": "2023-12-01T05:00:00.401Z",
"id": "crsaq_xxxxxxxxxxxx",
"image": {
"content_type": "image/jpeg",
"filename": "document.pdf",
"url": "https://media.whop.com/abc123/optimized.jpg"
},
"options": [
{
"id": "crsaqo_xxxxxxxxxxx",
"order": 42
}
],
"order": 42
}
],
"attachments": [
{
"content_type": "image/jpeg",
"filename": "document.pdf",
"url": "https://media.whop.com/abc123/optimized.jpg"
}
],
"content": "In this lesson, we will cover the basics of technical analysis...",
"created_at": "2023-12-01T05:00:00.401Z",
"days_from_course_start_until_unlock": 42,
"embed_id": "dQw4w9WgXcQ",
"id": "lesn_xxxxxxxxxxxxx",
"main_pdf": {
"content_type": "image/jpeg",
"filename": "document.pdf",
"url": "https://media.whop.com/abc123/optimized.jpg"
},
"order": 42,
"thumbnail": {
"url": "https://media.whop.com/abc123/optimized.jpg"
},
"title": "Understanding Candlestick Patterns",
"video_asset": {
"created_at": "2023-12-01T05:00:00.401Z",
"duration_seconds": 42,
"finished_uploading_at": "2023-12-01T05:00:00.401Z",
"id": "mux_xxxxxxxxxxxxxx",
"updated_at": "2023-12-01T05:00:00.401Z"
}
}