The Submission Object

{
  "id": 1,
  "assignment": 1,
  "students": [
      "[email protected]"
  ],
  "grader": null,
  "isFinalized": false,
  "dateEdited": "2019-02-06T09:54:41.494159-05:00", // date when last change was made
  "grade": null,
  "files": [ // added some files since the object was created
    1,
    2
  ],
  "tests": [22, 43],
  "queueOrderKey": 0
}

Attribute

Type

Description

id

integer

Unique identifier for the object.

assignment

integer

The assignment this submission corresponds to.

students

array of strings

A list of the students who worked on this submission. A student can have at most one submission per assignment. These users must also be active students in the submission's course. Every submission must have at least 1 student.

grader

string

The grader assigned to grade this submission, specified by email. This user must be an active grader in the submission's course. If submission.isFinalized == True, then this field cannot be null

isFinalized

boolean

If True, the submission will be visible by students if the associated assignment is published. For more information, see Who can view a submission?.

queueOrderKey

integer

Index used to order the queue from which graders draw submissions. Low keys will be drawn from the queue first.

dateEdited

string

The time when this object was last edited. Edits include changes to the submission's fields and any updates or additions to child objects (such as a File or Comment).

grade

integer

Integer value specifying the number of points earned by the submission, accounting for all linked Comments and Rubric Comments. This field is calculated by the codePost API whenever the submission is finalized.

files

array of integers

A list of the submission's file IDs.

tests

array of integers

A list of the submission's Submission Tests.