MudeyMudeyAPI documentation
    OpenAPIMy keysBack to Mudey

    Guide

    • Overview
    • Getting started
    • Publishing a course
    • Errors
    • Security
    Account
    • getAccount and key permissions
    • getCatalog categories
    Courses
    • getList my courses
    • postCreate a course
    • getGet a full course
    • patchUpdate a course
    • delDelete a course
    • postPublish
    • postUnpublish
    Modules
    • postAdd a module
    • putReorder modules
    • patchUpdate a module
    • delDelete a module
    Lessons
    • postAdd a lesson
    • putReorder the lessons of a module
    • getGet a lesson
    • patchUpdate a lesson
    • delDelete a lesson
    • getList the questions of a quiz
    • postAdd a question to a quiz
    • putReplace the questions of a quiz
    • getList the transcripts of a lesson
    • getGet the transcript of a lesson in a language
    • putUpload the transcript of a lesson in a language
    • delDelete the transcript of a lesson in a language
    Files
    • postGet an upload URL
    Translations
    • getList a course's translations
    • getGet a course translation in one language
    • putSave a course translation in one language
    • patchComplete a course translation
    • delDelete a course translation in one language
    • postPublish a translation
    • postUnpublish a translation
    Coupons
    • getList my coupons
    • postCreate a coupon
    • getGet a coupon
    • patchUpdate a coupon
    • delDelete a coupon
    Students and revenue
    • getStudents of a course
    • getStatistics of a course
    • getStatistics of all my courses
    • getRevenue for a month

    On this page

    POST /courses/{courseId}/lessons/{lessonId}/questions
    • Parameters
    • JSON body
    • Responses
    • Example

    Lessons7 / 12

    • postAdd a lesson
    • putReorder the lessons of a module
    • getGet a lesson
    • patchUpdate a lesson
    • delDelete a lesson
    • getList the questions of a quiz
    • postAdd a question to a quiz
    • putReplace the questions of a quiz
    • getList the transcripts of a lesson
    • getGet the transcript of a lesson in a language
    • putUpload the transcript of a lesson in a language
    • delDelete the transcript of a lesson in a language
    1. Instructor API
    2. Lessons
    3. Add a question to a quiz

    Add a question to a quiz

    posthttps://mudey.fr/api/v1/courses/{courseId}/lessons/{lessonId}/questionscourses:write

    The question is checked as in the editor; the quiz duration (30 s per question) is recalculated.

    Authorization: Bearer mudey_sk_… header required. Create and use a key

    Parameters

    NameInTypeDescription
    courseId*pathstring
    lessonId*pathstring

    JSON body

    Fields marked * are required.

    FieldTypeDescription
    kindSINGLE | MULTIPLESINGLE: a single correct answer; MULTIPLE: all correct answers to tick. Default: inferred from the number of correct answers.
    prompt*stringQuestion text.
    answers*object[]2 to 15 answers, at least one correct (exactly one for SINGLE).
    relatedLessonIdstring | nullVideo lesson of the same course to review, suggested to a student who gets it wrong.

    Responses

    • 201Question added; updated list.
    • 401Missing, invalid, revoked or expired key.
    • 403Missing permission on the key, or the account is no longer an instructor.
    • 404Resource not found among your courses.
    • 422Invalid question (invalid_questions), related session not found (invalid_related_lesson) or lesson that is not a quiz (not_a_quiz).
    • 429Rate limit exceeded (300 calls per minute per key). See the Retry-After header.

    Example

    export MUDEY_API_KEY="mudey_sk_..."
    export COURSE_ID="..."  # replace me
    export LESSON_ID="..."  # replace me
    
    curl -X POST "https://mudey.fr/api/v1/courses/$COURSE_ID/lessons/$LESSON_ID/questions" \
      -H "Authorization: Bearer $MUDEY_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
      "kind": "SINGLE",
      "prompt": "Combien de couleurs primaires en lumière ?",
      "answers": [
        {
          "text": "Trois",
          "explanation": "Rouge, vert et bleu.",
          "correct": true
        },
        {
          "text": "Quatre",
          "explanation": "Non : quatre, c'\''est l'\''imprimerie (CMJN).",
          "correct": false
        }
      ],
      "relatedLessonId": "…"
    }'
    PreviousList the questions of a quizNextReplace the questions of a quiz

    © 2026 Mudey · API documentation

    openapi.jsonHelp centerContact