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
Topics → Create
AI-generatedSummary
Create a new topic within LearnDash by providing topic-specific fields such as title, content, excerpt, status, slug, and associations to a parent course and lesson.
Inputs
- Topic Fields — Specify topic properties including Title, Content, Excerpt, Status (Draft, Pending, Private, Publish, Trash), Slug, Course ID (parent course), and Lesson ID (parent lesson, required for topics). Optionally provide Topic ID if applicable.
- Body (JSON) — Provide a raw JSON payload for advanced use cases to include additional or custom topic fields not exposed as standard inputs. This overrides or complements the Topic Fields collection.
Output shape
A list containing the created topic item as a JSON object.
The output is always an array of JSON objects representing created topics. Errors in JSON input in Body (JSON) are surfaced as operation errors. The created topic data corresponds to the LearnDash LMS REST API response structure.
Examples
Example 1: Create a topic with Title and Content fields linked to a specific Course and Lesson IDs.
Set 'Title', 'Content', 'Course ID', and 'Lesson ID' within 'Topic Fields'. Leave 'Body (JSON)' empty if not needed.
