LearnDash icon

LearnDash

Interact with the LearnDash LMS REST API

Actions60

Questions → Create

AI-generated

Summary

Create a new question in LearnDash attached to a quiz or course.

Inputs

  • Question Fields — Collection of question parameters including title, content, status, parent quiz ID, course ID, question type, points, and feedback messages.
  • Body (JSON) — JSON object string containing custom or additional parameters to send in the request body.

Output shape

a single record

Returns the created LearnDash question object including its generated ID and formatted settings.

Examples

Example 1: Create a single choice question for a quiz

Set Question Fields > Title to 'What is n8n?', Question Type to 'Single Choice', Quiz ID to 101, and Points to 5.

Example 2: Create an essay question using raw JSON payload

Set Body (JSON) to '{"title": "Describe workflow automation", "question_type": "essay", "quiz": 102, "status": "publish"}'.

Discussion