Actions60
- Courses Actions
- Lessons Actions
- Topics Actions
- Quizzes Actions
- Groups Actions
- Course Users Actions
- Group Users Actions
- Custom Actions
- Assignments Actions
- Essays Actions
- Questions Actions
- Group Leaders Actions
- User Course Progress Actions
- User Courses Actions
- Group Courses Actions
- User Groups Actions
Lessons → Create
AI-generatedSummary
Create a new lesson in LearnDash by specifying its details such as title, content, excerpt, status, slug, and parent course ID.
Inputs
- Lesson Fields — Specify the lesson details including Title, Content, Excerpt, Status (e.g., Draft, Publish), Slug, and Course ID to associate the lesson with a parent course.
- Body (JSON) — Provide an advanced custom JSON payload for the lesson creation request body to use fields not available via UI parameters or override them.
Output shape
a single record representing the newly created lesson's data as returned by the LearnDash API
The output contains the created lesson object, typically including its ID and other metadata returned from the LearnDash LMS REST API after successful creation. If the request fails, an error is thrown.
Examples
Example 1: Create a lesson with basic fields
Set Title to "Introduction to Algebra", Content to lesson details, Status to "Publish", and Course ID to the parent course.
Example 2: Create a lesson with custom JSON payload
Leave Lesson Fields blank and supply a JSON string in Body (JSON) for advanced properties or custom fields.
