- [Resource: AddOnAttachmentStudentSubmission](https://developers.google.com/workspace/classroom/reference/rest/v1/courses.posts.addOnAttachments.studentSubmissions#AddOnAttachmentStudentSubmission)
  - [JSON representation](https://developers.google.com/workspace/classroom/reference/rest/v1/courses.posts.addOnAttachments.studentSubmissions#AddOnAttachmentStudentSubmission.SCHEMA_REPRESENTATION)
- [Methods](https://developers.google.com/workspace/classroom/reference/rest/v1/courses.posts.addOnAttachments.studentSubmissions#METHODS_SUMMARY)

## Resource: AddOnAttachmentStudentSubmission

Payload for grade update requests.

| JSON representation |
|---|
| ``` { "pointsEarned": number, "postSubmissionState": enum (`https://developers.google.com/workspace/classroom/reference/rest/v1/SubmissionState`), "userId": string, "id": string, "courseWorkSubmissionId": string } ``` |

| Fields ||
|---|---|
| `pointsEarned` | `number` Student grade on this attachment. If unset, no grade was set. |
| `postSubmissionState` | ``enum (`https://developers.google.com/workspace/classroom/reference/rest/v1/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`](https://developers.google.com/workspace/classroom/reference/rest/v1/courses.courseWork.studentSubmissions/get#authorization-scopes) for the list of acceptable OAuth scopes for this field. Read-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 ||
|---|---|
| ### `https://developers.google.com/workspace/classroom/reference/rest/v1/courses.posts.addOnAttachments.studentSubmissions/get` | Returns a student submission for an add-on attachment. |
| ### `https://developers.google.com/workspace/classroom/reference/rest/v1/courses.posts.addOnAttachments.studentSubmissions/patch` | Updates data associated with an add-on attachment submission. |