POST /api/v1/quizzes/update

Update a Quiz

This page offers a clear overview of Update a Quiz. It helps you explore this topic and find a useful next step.

POST
https://vidbyte-backend.onrender.com/api/v1/quizzes/update

Example request

bash
curl https://vidbyte-backend.onrender.com/api/v1/quizzes/update \ -H "x-api-key: vb_live_your_api_key" \ -H "Content-Type: application/json" \ -d '{ "quiz_id": "quiz_9Yv7k12Lm", "actions": { "difficulty": "harder", "reasoning": "first principles", "next_quiz": "next sequential topic" }, "prompt": "Make the quiz more diagnostic for backend interviews" }'

Example response

JSON
{ "success": true, "id": "quiz_2hL9md4Xp", "data": { "id": "quiz_2hL9md4Xp", "item_type": "quiz", "title": "HTTP caching mastery check", "description": "A harder follow-up quiz for backend interview prep.", "actions_applied": ["make_harder", "first_principles", "next_topic"], "parent_quiz_id": "quiz_9Yv7k12Lm", "quiz_data": { "title": "HTTP caching mastery check", "questions": [{ "question": "Why does ETag support safe revalidation?" }] } }, "token_stats": { "input_tokens": 411, "output_tokens": 287, "total_tokens": 698 }, "pricing": { "total_cost": 0.0101 } }

Parameter information

These are the public parameters for /api/v1/quizzes/update. Path parameters and request-body fields are shown together so the page stays focused on the live request contract you actually send.

quiz_idstringRequired

The encrypted public quiz id of the existing quiz you want to modify.