LearnDash icon

LearnDash

Interact with the LearnDash LMS REST API

Actions60

Questions → Update

AI-generated

Summary

Updates an existing LearnDash question by its ID using structured field settings or a custom JSON payload.

Inputs

  • Item ID (required) — The numeric ID of the question to update.
  • Question Fields — Structured properties to update on the question, including title, content, status, parent course/quiz IDs, question type, points, and hint or feedback messages.
  • Body (JSON) — A JSON string containing raw request body parameters that override or extend options configured in Question Fields.

Output shape

a single record

Returns the updated question object from the LearnDash REST API.

Examples

Example 1: Update the question title and points value

Set Item ID to "101" and configure Question Fields with Title = "What is the capital of France?" and Points = 5.

Example 2: Reassign a question to another quiz and adjust feedback messages

Set Item ID to "101" and configure Question Fields with Quiz ID = 202, Correct Message = "Great job!", and Incorrect Message = "Try again!".

Discussion