Docs home

User Teaching Material View Reset

Resets one recorded view of a teaching material, so it no longer counts against the material's view limit. Use it when a learner has used up their allowed views (`max_views`) and you want to give one back. Get the view `id` from "Get User Teaching Material Views".

POST/materials/view/{id}/reset
User Teaching Material View Reset
curl --request POST \
  --url 'https://<your-api-host>/nuSource/api/v1/materials/view/{id}/reset' \
  --header 'APIKEY: <your-api-key>' \
  --header 'ORGID: <your-org-id>'
{
  "code": 200,
  "message": "View Reset Succesfully !",
  "reset_at": 1741158972,
  "reset_by": " Gauravedupanion Kapoor "
}

Access: Institute admins and tutors, plus custom roles that can manage learners.

Path parameters
idintegerrequired
View record ID, from viewsInfo[].id in "Get User Teaching Material Views".

No request body is needed.

Response200application/json
codeinteger
Example: 200
messagestring
Example: View Reset Succesfully !
reset_atinteger
Unix timestamp of the reset
Example: 1741158972
reset_bystring
Name of the user who made the call
Example: Gauravedupanion Kapoor

Notes: The view stays in the history with is_material_view_reset set to 1. Because the learner's next view counts as a first view again, it can trigger course-progress updates (and the progress webhook) once more. Fails with "Not Authorized" if the view belongs to a material outside your institute. Tutors can reset views on any material in the institute, not only their own courses. Rate limit: 30 requests per 1 minute; going over locks you out for 30 minutes.

Updated yesterday

Ask AI