Identifier of the Announcement, CourseWork, or CourseWorkMaterial whose attachments should be enumerated. This field is required, but is not marked as such while we are migrating from postId.
Query parameters
Parameters
postId (deprecated)
string
Optional. Identifier of the post under the course whose attachments to enumerate. Deprecated, use itemId instead.
pageSize
integer
The maximum number of attachments to return. The service may return fewer than this value. If unspecified, at most 20 attachments will be returned. The maximum value is 20; values above 20 will be coerced to 20.
pageToken
string
A page token, received from a previous addOnAttachments.list call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to addOnAttachments.list must match the call that provided the page token.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-05 UTC."],[[["This method returns all attachments created by an add-on under a post, requiring active attachments or permission to create them."],["It uses a `GET` request to `https://classroom.googleapis.com/v1/courses/{courseId}/courseWork/{itemId}/addOnAttachments` with path and query parameters for filtering."],["Potential errors include `PERMISSION_DENIED`, `INVALID_ARGUMENT`, and `NOT_FOUND`, depending on the request."],["Requires OAuth scope `https://www.googleapis.com/auth/classroom.addons.student` or `https://www.googleapis.com/auth/classroom.addons.teacher` for authorization."],["A successful response provides a list of add-on attachments in the specified format."]]],[]]