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 ist, ist der Antworttext leer.
[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 deletes an add-on attachment, requiring the add-on to be the original creator."],["Requires authorization with the `https://www.googleapis.com/auth/classroom.addons.teacher` scope."],["Potential errors include `PERMISSION_DENIED`, `INVALID_ARGUMENT`, and `NOT_FOUND`."],["The request body should be empty, and a successful response will also be empty."]]],[]]