Optional. Verworfen, verwenden Sie stattdessen itemId.
attachmentId
string
Erforderlich. ID des Anhangs.
Abfrageparameter
Parameter
itemId
string
ID des Announcement, CourseWork oder CourseWorkMaterial, unter dem der Anhang angehängt ist. Dieses Feld ist erforderlich, ist aber bei der Migration von postId nicht entsprechend gekennzeichnet.
Anfragetext
Der Anfragetext muss leer sein.
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von AddOnAttachment.
[null,null,["Zuletzt aktualisiert: 2025-02-27 (UTC)."],[[["This method is deprecated and should be replaced with `course.announcements.addOnAttachments`, `course.courseWork.addOnAttachments`, or `course.courseWorkMaterials.addOnAttachments`."],["It retrieves an add-on attachment, requiring the requesting add-on to be the attachment's original creator."],["The request must specify the `courseId`, `attachmentId`, and `itemId` (identifying the parent Announcement, CourseWork, or CourseWorkMaterial)."],["Potential errors include `PERMISSION_DENIED`, `INVALID_ARGUMENT`, and `NOT_FOUND`."],["Authorization requires specific OAuth scopes related to Classroom add-ons."]]],[]]