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

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

    Lessons8 / 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. Replace the questions of a quiz

    Replace the questions of a quiz

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

    The whole list is replaced at once; an error writes none of it.

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

    Parameters

    NameInTypeDescription
    courseId*pathstring
    lessonId*pathstring

    JSON body

    Fields marked * are required.

    FieldTypeDescription
    questions*QuizQuestionInput[]

    Responses

    • 200Questions saved.
    • 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 PUT "https://mudey.fr/api/v1/courses/$COURSE_ID/lessons/$LESSON_ID/questions" \
      -H "Authorization: Bearer $MUDEY_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
      "questions": [
        {
          "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": "…"
        },
        {
          "kind": "MULTIPLE",
          "prompt": "Lesquelles sont des couleurs CSS valides ?",
          "answers": [
            {
              "text": "#ff0000",
              "explanation": "Hexadécimal.",
              "correct": true
            },
            {
              "text": "rgb(0 0 255)",
              "explanation": "Fonction rgb().",
              "correct": true
            },
            {
              "text": "rouge",
              "explanation": "Les noms de couleur sont en anglais (red).",
              "correct": false
            }
          ]
        }
      ]
    }'
    PreviousAdd a question to a quizNextList the transcripts of a lesson

    © 2026 Mudey · API documentation

    openapi.jsonHelp centerContact