REST Resource: courses.posts.addOnAttachments.studentSubmissions

Resource: AddOnAttachmentStudentSubmission

Payload for grade update requests.

JSON representation
{
  "pointsEarned": number,
  "postSubmissionState": enum (SubmissionState),
  "userId": string,
  "id": string,
  "courseWorkSubmissionId": string
}
Fields
pointsEarned

number

Student grade on this attachment. If unset, no grade was set.

postSubmissionState

enum (SubmissionState)

Submission state of add-on attachment's parent post (i.e. assignment).

userId

string

Identifier for the student that owns this submission.

Requires the user to be a teacher in the course and have permission to read student submissions. See courseWork.studentSubmissions.get for the list of acceptable OAuth scopes for this field.

Output only.

id

string

Output only. Classroom-assigned identifier for this student submission. This is unique among submissions for the relevant course work and add-on attachment combination.

courseWorkSubmissionId

string

Output only. Identifier of the course work submission under which this attachment submission was made.

Methods

get

Returns a student submission for an add-on attachment.

patch

Updates data associated with an add-on attachment submission.