Resource: AddOnAttachment
An add-on attachment on a post.
JSON representation |
---|
{ "courseId": string, "postId": string, "itemId": string, "id": string, "title": string, "teacherViewUri": { object ( |
Fields | |
---|---|
courseId |
Immutable. Identifier of the course. |
postId |
Immutable. Deprecated, use |
itemId |
Immutable. Identifier of the |
id |
Immutable. Classroom-assigned identifier for this attachment, unique per post. |
title |
Required. Title of this attachment. The title must be between 1 and 1000 characters. |
teacherViewUri |
Required. URI to show the teacher view of the attachment. The URI will be opened in an iframe with the |
studentViewUri |
Required. URI to show the student view of the attachment. The URI will be opened in an iframe with the |
studentWorkReviewUri |
URI for the teacher to see student work on the attachment, if applicable. The URI will be opened in an iframe with the |
dueDate |
Date, in UTC, that work on this attachment is due. This must be specified if |
dueTime |
Time of day, in UTC, that work on this attachment is due. This must be specified if |
maxPoints |
Maximum grade for this attachment. Can only be set if |
copyHistory[] |
Output only. Identifiers of attachments that were previous copies of this attachment. If the attachment was previously copied by virtue of its parent post being copied, this enumerates the identifiers of attachments that were its previous copies in ascending chronological order of copy. |
Methods |
|
---|---|
|
Creates an add-on attachment under a post. |
|
Deletes an add-on attachment. |
|
Returns an add-on attachment. |
|
Returns all attachments created by an add-on under the post. |
|
Updates an add-on attachment. |