cURL
curl --request PUT \ --url https://api.example.com/quiz/endQuiz/{quizId} \ --header 'api-key: <api-key>'
{ "_id": "65f3...", "orgId": "65f1c0f5a2b3c4d5e6f7a8b9", "userId": "user-123", "hasStarted": true, "hasCompleted": true, "quizName": "Algebra Basics Quiz", "questionsWithOptionsAndAnswers": [...] }
Mark a quiz as completed
quizId
curl -X PUT \ 'https://b2b-api-backend-95487.ondigitalocean.app/quiz/endQuiz/{quizId}' \ -H 'accept: application/json' \ -H 'api-key: <your-api-key>'
hasCompleted
true