cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
aday
Community Participant

Hiding Assignment Grades with the API

Jump to solution

With the removal of 'Muted' from assignments back in June/July how would you now create an assignment with the api with the grades hidden by default. Then at a later date make them visible.

 

Thanks,

Labels (6)
0 Kudos
1 Solution

Accepted Solutions
agschmid
Community Contributor

This needs to be set in the Gradebook (https://community.canvaslms.com/t5/Instructor-Guide/How-do-I-select-a-grade-posting-policy-for-an-as...) and assignments created afterward will automatically be hidden until the instructor posts grades for the specific assignment. Unfortunately, there doesn't seem to be anything in the API docs for setting it.

From https://community.canvaslms.com/t5/Change-Log/2020-API-Change-Log-Archive/ta-p/262734

Assignments API | Assignment Object

Deprecated muted parameter [Update 2020-02-27: a new parameter will be added in a future deploy]

 

View solution in original post

3 Replies
A_K_Dekker
Community Participant

You should be able to hide the grades by including "post_manually": true to your creation post.

This should set the posting policy for the assignment to manual meaning they will not be published until this is done manually.

 

See https://canvas.instructure.com/doc/api/assignments.html --> An Assignment object looks like --> third from bottom

 // Whether the assignment has manual posting enabled. Only relevant for courses
  // using New Gradebook.
  "post_manually": true,

 

aday
Community Participant

I have tried setting that and it looks to be read only, the api documentation does not list it for create/edit 

agschmid
Community Contributor

This needs to be set in the Gradebook (https://community.canvaslms.com/t5/Instructor-Guide/How-do-I-select-a-grade-posting-policy-for-an-as...) and assignments created afterward will automatically be hidden until the instructor posts grades for the specific assignment. Unfortunately, there doesn't seem to be anything in the API docs for setting it.

From https://community.canvaslms.com/t5/Change-Log/2020-API-Change-Log-Archive/ta-p/262734

Assignments API | Assignment Object

Deprecated muted parameter [Update 2020-02-27: a new parameter will be added in a future deploy]

 

View solution in original post