The Assignment Object

{
  "id": 1, // assigned by codePost API
  "name": "Hello, World",
  "course": 1,
  "points": 20,
  "isReleased": false,
  "rubricCategories": [4,2],
  "fileTemplates": [42],
  "testCategories": [44, 98, 122],
  "sortKey": 0,
  "hideGrades": false,
  "anonymousGrading": true,
  "commentFeedback": true,
  "liveFeedbackMode": false,
  "additiveGrading": false,
  "hideGradersFromStudents": true,
  "allowStudentUpload": true,
  "uploadDueDate": '2019-12-14T06:19:00Z',
  "allowRegradeRequests": false,
  "regradeDeadline": '',
  "forcedRubricMode": false,
  "collaborativeRubricMode": true,
  "showFrequentlyUsedRubricComments": true,    
}

Setting

Attribute

Type

Description

id

integer

Unique identifier for the object.

name

string

The name of the assignment.

course

ID

The Course object which this assignment is a part of.

points

integer

The total number of points possible in the assignment. All submissions will be graded "out of" this value.

isReleased

boolean

If True, finalized submissions will be viewable by students. See Who can view a submission? for more details.

rubricCategories

array of integers

A list of Rubric Categories, which constitute this assignment's rubric.

fileTemplates

array of integers

A list of FileTemplates belonging to this assignment.

testCategories

array of integers

A list of Test Categories belonging to this assignment.

sortKey

integer

Key that defines how Assignments are sorted within the codePost UI.

mean

integer

The mean grade calculated over finalized submissions for this assignment. null if no submissions have been finalized.

median

integer

The median grade calculated over finalized submissions for this assignment. null if no submission have been finalized.

hideGrades

boolean

An Assignment setting. If True, students won't be able to view their submission grades for this assignment.

anonymousGrading

boolean

An Assignment setting. If True, Anonymous Grading Mode will be enabled for this assignment.

commentFeedback

boolean

An Assignment setting. If True, Comment Feedback will be enabled for this assignment.

liveFeedbackMode

boolean

An Assignment setting. If True, students will be able to see their submissions and feedback before the submission is finalized or published.

additiveGrading

boolean

An Assignment setting. If True, grade calculations begin at 0 instead of the assignment.points.

hideGradersFromStudents

boolean

An Assignment setting. If True, the graders of a submission will be hidden from students.

allowStudentUpload

boolean

An Assignment setting. If True, students will be allowed to upload submissions until the upload due date.

uploadDueDate

datetime

The date after which students are not allowed to upload submissions. Only applies if assignment.allowStudentUpload is True.

allowRegradeRequests

boolean

An Assignment setting. If True students will be allowed to submit regrade requests after their submission has been graded.

regradeDeadline

datetime

The date after which students are not allowed to submit a regrade request. Only applies if allowRegradeRequests is True.

forcedRubricMode

boolean

If True, admins and graders will be prevented from saving comments which do not link to rubric comments.

collaborativeRubricMode

boolean

If True, graders will be allowed to edit the assignment's rubric.

showFrequentlyUsedRubricComments

boolean

If True, frequently used rubric comments will be shown in a special category in the Code Console.