LearnDash icon

LearnDash

Interact with the LearnDash LMS REST API

Actions60

Courses → Create

AI-generated

Summary

Create a new LearnDash course by specifying course details such as title, content, status, pricing, and prerequisites.

Inputs

  • Course Fields — Set course-specific fields including title, content, excerpt, status (e.g., draft, publish), slug, featured image (by ID or URL), price type and related prices, prerequisite settings, and points configuration.
  • Body (JSON) — Provide a JSON payload directly to customize the request body for advanced use cases, overriding or adding to the common fields.

Output shape

a single JSON object representing the newly created course.

If a Featured Image URL is provided, the node will download and upload the image to WordPress media and set it as the course thumbnail before creation. Use either 'Course Fields' inputs or a JSON body optionally, where JSON body overrides are merged.

Examples

Example 1: Create a simple published course with title and content

Set 'Title' and 'Content' in Course Fields and optionally set 'Status' to 'publish'.

Example 2: Create a course with a featured image from an external URL

Provide 'Featured Image URL' and optionally 'Featured Image Filename' in Course Fields along with other course details.

Discussion