Docs home

User Attempt Reset

Resets one student attempt at an exercise or quiz, so it no longer counts. Put the attempt ID (`attempt_id` from "Exercise Attempt List") in the URL. A reset attempt stays on record, marked as reset, but no longer counts toward the student's attempt limit or reports, so the student can try again.

POST/examexercise/attempt/{attemptId}/reset
User Attempt Reset
curl --request POST \
  --url 'https://<your-api-host>/nuSource/api/v1/examexercise/attempt/{attemptId}/reset' \
  --header 'APIKEY: <your-api-key>' \
  --header 'ORGID: <your-org-id>' \
  --form 'JSONString={"is_quiz":false}'
{
  "code": 200,
  "message": "Attempt Reset Succesfully !",
  "reset_at": 1722410098,
  "reset_by": "Edmingle Admin"
}

Access: Institute admins and tutors, plus custom roles that can manage submissions. The attempt must belong to a class in your current organization.

Request body: form-data with one field, JSONString, containing this JSON:

Path parameters
attempt_idintegerrequired
The attempt to reset.
BodyJSONString
is_quizbooleanrequired
true if the attempt is a quiz attempt, false for an exercise (including assignments). Must be JSON true/false.
Response200application/json
codeinteger
Example: 200
messagestring
Example: Attempt Reset Succesfully !
reset_atinteger
Unix timestamp of the reset
Example: 1722410098
reset_bystring
Name of the user who reset it
Example: Edmingle Admin

Notes: Fails with "Not Authorized" if the attempt isn't found in your organization (check is_quiz matches the attempt type). Resetting an already reset attempt just updates the time and user. Rate limit: 30 requests per minute; going over locks you out for 30 minutes.

Updated yesterday

Ask AI