Edushade Docs
Quizzes

A: Update quiz

PUT
/admin/quizzes/{quiz_id}
AuthorizationBearer <token>

In: header

Path Parameters

quiz_idstring

The quiz id identifier

Formatuuid
allow_pauseboolean
Defaultfalse
available_untilstring
Default"2025-01-31T23:59:59Z"
certificate_enabledboolean
Defaulttrue
completion_messagestring
Default"Great job! You've completed the advanced Machine Learning assessment."
descriptionstring
Default"Updated description for advanced concepts"
difficulty_levelstring
Default"advanced"
max_attemptsinteger
Default2
max_participantsinteger
Default50
passing_scoreinteger
Default80
passwordstring
Default"ml2024quiz"
password_protectedboolean
Defaulttrue
quiz_typestring
Default"assessment"
retake_policystring
Default"instructor_approval"
show_answer_afterboolean
Defaultfalse
show_results_immediatelyboolean
Defaulttrue
shuffle_questionsboolean
Defaultfalse
thumbnailstring
Default"https://example.com/updated-quiz-thumbnail.jpg"
Formaturi
time_limitinteger
Default90
titlestring
Default"Advanced Machine Learning Quiz"

Response Body

curl -X PUT "https://edushade.com/api/v1/admin/quizzes/497f6eca-6276-4993-bfeb-53cbbbba6f08" \
  -H "Content-Type: application/json" \
  -d '{
    "allow_pause": false,
    "available_until": "2025-01-31T23:59:59Z",
    "certificate_enabled": true,
    "completion_message": "Great job! You\'ve completed the advanced Machine Learning assessment.",
    "description": "Updated description for advanced concepts",
    "difficulty_level": "advanced",
    "max_attempts": 2,
    "max_participants": 50,
    "passing_score": 80,
    "password": "ml2024quiz",
    "password_protected": true,
    "quiz_type": "assessment",
    "retake_policy": "instructor_approval",
    "show_answer_after": false,
    "show_results_immediately": true,
    "shuffle_questions": false,
    "thumbnail": "https://example.com/updated-quiz-thumbnail.jpg",
    "time_limit": 90,
    "title": "Advanced Machine Learning Quiz"
  }'
{}
Empty
Empty
Empty