Showing results for 
Show  only  | Search instead for 
Did you mean: 
New Member

Canvas Submissions API -- 401 error with one specific student on one specific assigment

Using the submissions api (/api/v1/courses/:course_id/assignments/:assignment_id/submissions), I'm testing out making submissions to assignment as students. I'm using an admin account with masquerading permissions. Overall, it works fine, I can make submissions as any student to any assignment, EXCEPT one specific student to one specific assignment gets a 401 not authorized.

  • Student A gets an error making a submission to Assignment A
  • But that same student can successfully submit the same submission to Assignment B (which has identical settings and status as Assignment A)
  • Even weirder, Student B can successfully submit the same submission to Assignment A

I'm at a bit of a loss as to what could cause something like that. Thank you in advance for any help!

Labels (2)
0 Kudos
2 Replies
Community Member

I don't know if it matters, but is student A assigned to assignment A?

New Member

Woke up this morning, and it had somehow resolved itself. I didn't fully pinpoint the issue, but it seems that if you:

  1. Create a published module
  2. Add a published assignment to it
  3. Unpublish the module
  4. Delete the module

The assignment will have a state of 'published:true', but retain the 'can-submit: false' that it had as part of an unpublished module, and you have to unpublish and republish in order to be able to submit to it. I think it's a bug? Could be intended behavior, but not sure.