Individual users API

deletes all of the student's quiz responses for a given quiz

DELETE /api/v1/users/:id/reset_progress

Parameters

Name Description
id id
custom_form_id custom_form_id
reset_quiz_only reset_quiz_only

Request

Headers

Accept: application/json
X-Api-Token: CyeyzvNQkfawkfwE9YzhMxdXjXzqoC1rfg
X-Api-Email: user-352@example.com

Route

DELETE /api/v1/users/1461/reset_progress

Body

{"custom_form_id":11,"reset_quiz_only":true}

cURL

curl "http://localhost:3000/api/v1/users/1461/reset_progress" -d '{"custom_form_id":11,"reset_quiz_only":true}' -X DELETE \
	-H "Accept: application/json" \
	-H "X-Api-Token: CyeyzvNQkfawkfwE9YzhMxdXjXzqoC1rfg" \
	-H "X-Api-Email: user-352@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Status

204 No Content