Skip to main content
PUT
Submit a quiz attempt

Authorizations

Api-Token
string
header
required

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.

Path Parameters

uuid
string
required

QuizAttempt identifier

Body

application/json

The updated QuizAttempt resource

uuid
string | null
quiz
string<iri-reference>
Example:

"/api/v1/course_quizzes/1"

answers
(string | null)[] | null

Response

QuizAttempt resource updated

id
integer
read-only
uuid
string | null
quiz
string<iri-reference>
Example:

"/api/v1/course_quizzes/1"

user
string<iri-reference>
Example:

"/api/v1/users/1"

startedAt
string<date-time>
submittedAt
string<date-time> | null
score
number | null
passed
boolean
default:false
answers
(string | null)[] | null
attemptNumber
integer
default:1
timeSpent
integer | null
dateCreated
string<date-time>