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 from a course work item, announcement, or course work material."],["Requires the add-on requesting the attachment to have created it originally."],["Uses `courseId`, `itemId`, and `attachmentId` as path parameters to identify the resources."],["May return errors like `PERMISSION_DENIED`, `INVALID_ARGUMENT`, or `NOT_FOUND`."],["Requires authorization with specific scopes for add-ons access."]]],[]]