Docs home

Reset User Exercises & Quiz Attempts

Resets every attempt a student has made at one exercise or quiz in one class, so the student can start over. Reset attempts stay on record, marked as reset, but no longer count toward the attempt limit or reports.

POST/assessments/attempts/resetall
Reset User Exercises & Quiz Attempts
curl --request POST \
  --url 'https://<your-api-host>/nuSource/api/v1/assessments/attempts/resetall' \
  --header 'APIKEY: <your-api-key>' \
  --header 'ORGID: <your-org-id>' \
  --form 'JSONString={"is_quiz":false,"class_id":1234,"student_id":77724,"assessment_id":1032}'
{
  "code": 200,
  "message": "All Attempts Reset Successfully"
}

Access: Institute admins and tutors, plus custom roles that can manage submissions. Only attempts in classes of your current organization are reset.

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

BodyJSONString
assessment_idintegerrequired
The exercise ID, or the quiz ID when is_quiz is true.
is_quizbooleanrequired
true for a quiz, false for an exercise or assignment. Must be JSON true/false.
student_idintegerrequired
The student.
class_idintegerrequired
The class (subject batch) the attempts were made in.
Response200application/json
codeinteger
Example: 200
messagestring
Example: All Attempts Reset Successfully

Notes: Fails with "No Attempts Found to reset" if the student has no attempts that aren't already reset. Rate limit: 30 requests per minute; going over locks you out for 30 minutes.

Updated yesterday

Ask AI