I am facing the exact same issue that @maguire mentioned here:
https://community.canvaslms.com/t5/Canvas-Developers-Group/All-things-API/m-p/50687/highlight/true
While I am able to add and delete individual peer reviews for a user through the GUI, I am unable to do it using the api as mentioned at https://canvas.instructure.com/doc/api/all_resources.html#method.peer_reviews_api.create.
Here is what my code looks like:
assign_peer_review_url = "https://<infra domain>/api/v1/courses/<courseid>/assignments/<assignment id>/submissions/<user_id_corresponding_to_this_submission>/peer_reviews"
data = {}
data['user_id'] = int(<user_id_of_the_user_who_is_supposed_to_review_the_submission>)
x = requests.post(assign_peer_review_url, json = dict(data), headers=canvas_token)
I have double checked the IDs and all of them are correct. I am still getting a 404 error. What could be wrong?
Thank you for the help!
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.