[ARCHIVED] Help in Restoring Assignment/Quiz Grades

lmnicolas
Community Member

Can anyone help me, I have accidentally moved our existing section to a new course via SIS Import, when I noticed this, I moved back the original section to the original course.

However, upon doing this. the assignment/quiz grades of the student can no longer be found on the Grades menu.

I found out that I can manually restore the grades by editing the Assignment/Quiz and assign them to their respective sections but it will take a long time to check them each manually.

I also found this API Call (https://canvas.instructure.com/doc/api/all_resources.html#method.sis_imports_api.restore_states ), tried using cURL via the Windows 10 Command Terminal

"curl https://<canvas>/api/v1/accounts/<account_id>/sis_imports/<sis_import_id>/restore_states \ -H 'Authorization: Bearer <token>'"

I tried this command:"curl https://my.instructure.com/api/v1/accounts/1/sis_imports/12864/restore_states  -H "Authorization: Bearer my_key"

and this command 

curl https://my.instructure.com/api/v1/accounts/1/sis_imports/12864/restore_states  -H "Authorization: Bearer my_key" -F "undelete_only=true"

and I get this result in html format

"Page error

There was a problem with your last request. You may have tried to perform an action after a long period of inactivity. If that's the case, try going back, reloading the page you were working on, and resubmitting. If not, please let us know what you were doing when the error happened."

Any idea on how to solve this?

 

Thanks! any idea will be much appreciated !

 

Labels (2)
0 Likes