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-09-04 UTC."],[[["Retrieves a specific add-on attachment from a course announcement, coursework, or material."],["Requires the add-on requesting the attachment to have created it originally."],["Uses `courseId`, `itemId`, and `attachmentId` as path parameters for identification."],["Requires authorization with either `classroom.addons.student` or `classroom.addons.teacher` scopes."]]],[]]