Start a quiz attempt
Creates and immediately scores a quiz attempt. The user must be enrolled in the course containing the quiz. Automatically calculates the attempt number, computes the score server-side from the submitted answers, and marks the attempt as submitted. Pass the quiz reference and answers map in the request body.
Authorizations
Server-to-server authentication. Generate a token in the admin UI at
Settings → Developers → API Access. Send the raw token in the
Api-Token header — there is no Bearer prefix.
Tokens can be marked read-only at creation time, in which case the API
rejects any non-GET request with 403 Forbidden.
Body
The new QuizAttempt resource
Response
QuizAttempt resource created
"/api/v1/course_quizzes/1"
"/api/v1/users/1"

