Identifier of the Announcement, CourseWork, or CourseWorkMaterial under which the attachment is attached. This field is required, but is not marked as such while we are migrating from postId.
attachmentId
string
Required. Identifier of the attachment.
Query parameters
Parameters
postId (deprecated)
string
Optional. Deprecated, use itemId instead.
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of AddOnAttachment.
[[["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."],[[["Retrieves a specific add-on attachment associated with coursework materials in a Google Classroom course."],["Requires authorization as a student or teacher with add-on access."],["Uses a `GET` request specifying the `courseId`, `itemId`, and `attachmentId` in the URL."],["Returns an `AddOnAttachment` object with information about the attachment if successful."],["Error responses indicate permission issues, invalid requests, or missing resources."]]],[]]