1. Quiz
E-Learning
  • Auth
    • Register
      POST
    • Confirm Email
      POST
    • Resend Confirmation Email
      POST
    • Login
      POST
    • Google Login
      GET
    • Google Login By Id Token
      POST
    • Forget Password
      POST
    • Reset Password
      POST
    • Refresh Token
      POST
    • Revoke Refresh Token
      POST
  • Account
    • Get User
      GET
    • Update User
      PUT
    • Delete User
      DELETE
    • Change Password
      PUT
    • Uploade User Image
      POST
    • Delete User Image
      DELETE
    • Become Instructor
      POST
    • Get Users To Admin
      GET
    • Delete User By Admin
      DELETE
    • Add User To Role
      POST
    • Remove User From Role
      DELETE
    • Get instructor Requests
      GET
    • Approve Instructor Request
      PATCH
    • Reject Instructor Request
      PATCH
  • Course
    • Anonymous
      • Get All Courses
      • Get Course By Id
    • Instructor
      • Get Instructor Courses
      • Get Instructor Course By Id
      • Create Course
      • Publish Course
      • Unpublish Course
      • Update Course Info
      • Delete Course
      • Add Thumbnail
      • Delete Thumbnail
    • Admin
      • Get All Courses To Admin
      • Get Course By Id To Admin
      • Delete Course By Admin
      • Restore Soft Deleted Course By Admin
  • Chapter
    • Anonymous
      • Get All Course Chapters
      • Get Chapter
    • Instructor
      • Get All Chapters To Instructor
      • Get Chapter To Instructor
      • Create Chapter
      • Update Chapter
      • Reorder All Chapters
      • Delete Chapter
      • Add Chapter Image
      • Delete Chapter Image
    • Admin
      • Get All Chapters To Admin
      • Get Chapter To Admin
  • Lesson
    • Anonymous
      • Get All Lessons
      • Get Lesson
    • Instructor
      • Get All Lessons To Instructor
      • Get Lesson To Instructor
      • Create Lesson In Chapter
      • Upload Lesson Video
      • Delete Lesson Video
      • Update Lesson
      • Delete Lesson
      • Reorder All Lessons in Chapter
    • Admin
      • Get All Lessons To Admin
      • Get Lesson To Admin
  • Cart
    • Get Cart For User
    • Add Course In Cart
    • Delete Item From User Cart
  • Payment
    • Create Payment Intention
    • Get Payment History
  • Enrollment
    • Enrolle In Course
    • Unenroll From Course
    • Get Enrolled Course Details
    • Get Student Courses
    • Get Enrolled Students in Course
  • Learn
    • Get Student Course Learn
    • Mark Lesson Complete
  • Quiz
    • Create Quiz
      POST
    • Get Quiz
      GET
    • Update Quiz Info
      PUT
    • Delete Quiz
      DELETE
    • Active Quiz
      PATCH
    • Deactive Quiz
      PATCH
  • Question
    • Question Types
    • Create Question
    • Get Question
    • Update Question
    • Delete Question
    • Reorder Questions
  • Quiz Attempt
    • Start Quiz Attempt
    • Get Active Quiz Attempt
    • Submit Quiz Attempt
    • Get Quiz Attempt Result
    • Get Quiz Attempts History
  1. Quiz

Update Quiz Info

PUT
http://e-learning-platform.tryasp.net/api/instructor/courses/{courseId}/lessons/{lessonId}/quiz
Instructor

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Body Params application/jsonRequired

Examples

Responses

🟢200Update Quiz Info
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://e-learning-platform.tryasp.net/api/instructor/courses//lessons//quiz' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
  "title": "Test Quiz 1",
  "description": "Test 1",
  "durationInMinutes": 60
}'
Response Response Example
{
    "id": 16,
    "title": "aw on graft rightfully sleepily linear bidet ravioli same across",
    "description": "Ter venustas natus triduana. Consectetur at bestia temeritas bis contigo. Peior vilitas bis cimentarius cenaculum canto. Desino constans vitiosus coruscus succurro. Ustulo tres undique validus aqua conforto capitulus adaugeo. Traho denuncio cunctatio auctus odit demens voluptatem. Depopulo complectus eligendi degusto temporibus audentia apud apostolus condico.",
    "durationInMinutes": 160.25422167652042,
    "isActive": false,
    "createdAt": "2026-07-11T15:05:49.270Z",
    "updatedAt": "2026-11-28",
    "lessonId": 82,
    "questions": [
        {
            "id": 39,
            "questionType": "Excepteur ipsum",
            "questionText": "anim aliquip aliqua",
            "points": 34.2824886905718,
            "orderNumber": 74,
            "options": {
                "id": 43,
                "optionText": "consequat sed ea occaecat",
                "isCorrect": false
            }
        },
        {
            "id": 33,
            "questionType": "in qui eiusmod",
            "questionText": "adipisicing ipsum anim ea",
            "points": 21.617701155422083,
            "orderNumber": 29,
            "options": {
                "id": 8,
                "optionText": "occaecat dolor",
                "isCorrect": true
            }
        },
        {
            "id": 61,
            "questionType": "occaecat in non",
            "questionText": "mollit commodo amet",
            "points": 47.14660940261323,
            "orderNumber": 26,
            "options": {
                "id": 93,
                "optionText": "nulla non",
                "isCorrect": true
            }
        }
    ]
}
Modified at 2026-07-20 15:13:26
Previous
Get Quiz
Next
Delete Quiz
Built with