create_course
Create a new LMS course by specifying a title and short introduction. Configure instructor, pricing, certificates, and publication options as needed.
Instructions
Create a new LMS Course. A URL slug is auto-generated from the title.
Args: title: Course title (required). short_introduction: One-line summary shown on course cards (required). description: Full HTML description. instructor: Email/User ID of the instructor. tags: Comma-separated tags, e.g. "Python, Web, Beginner". category: Category name (must exist in LMS Category doctype). image: Path to preview image. video_link: YouTube video ID or embed URL. published: Publish immediately. featured: Mark as featured. upcoming: Mark as upcoming. card_gradient: Card colour (Red/Blue/Green/Amber/Cyan/Orange/Pink/Purple/Teal/Violet/Yellow/Gray). disable_self_learning: Students can only learn via batches. paid_course: Whether this is a paid course. course_price: Price (required if paid_course). currency: Currency code (required if paid_course), e.g. "USD" or "IDR". enable_certification: Enable completion certificate. paid_certificate: Certificate requires payment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | ||
| image | No | ||
| title | Yes | ||
| category | No | ||
| currency | No | ||
| featured | No | ||
| upcoming | No | ||
| published | No | ||
| instructor | No | ||
| video_link | No | ||
| description | No | ||
| paid_course | No | ||
| course_price | No | ||
| card_gradient | No | ||
| paid_certificate | No | ||
| short_introduction | Yes | ||
| enable_certification | No | ||
| disable_self_learning | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |