GET /v1/courses/{courseId}/courseWork/{itemId}/addOnAttachments/{attachmentId}
Changed onReturns an add-on attachment. Requires the add-on requesting the attachment to be the original creator of the attachment. This method returns the following error codes: * PERMISSION_DENIED for access errors. * INVALID_ARGUMENT if the request is malformed. * NOT_FOUND if one of the identified resources does not exist.
Request
- Base URLhttps://classroom.googleapis.com
- URLhttps://classroom.googleapis.com/v1/courses/{courseId}/courseWork/{itemId}/addOnAttachments/{attachmentId}
- Auth
- OAuth 2 and OAuth 2Implicit: https://accounts.google.com/o/oauth2/authScopes: https://www.googleapis.com/auth/classroom.addons.studentAuthorization code: https://accounts.google.com/o/oauth2/authToken URL: https://accounts.google.com/o/oauth2/token scopes: https://www.googleapis.com/auth/classroom.addons.student
- or OAuth 2 and OAuth 2Implicit: https://accounts.google.com/o/oauth2/authScopes: https://www.googleapis.com/auth/classroom.addons.teacherAuthorization code: https://accounts.google.com/o/oauth2/authToken URL: https://accounts.google.com/o/oauth2/token scopes: https://www.googleapis.com/auth/classroom.addons.teacher
Path parameters
Required. Identifier of the course.
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 post_id.
Required. Identifier of the attachment.
Query parameters
Optional. Deprecated, use item_id instead.
Response
Successful response
Changes
- info
the security scope
https://www.googleapis.com/auth/classroom.addons.studentwas added to the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/classroom.addons.studentwas added to the endpoint's security schemeOauth2c - info
the security scope
https://www.googleapis.com/auth/classroom.addons.teacherwas removed from the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/classroom.addons.teacherwas removed from the endpoint's security schemeOauth2c
- info
- info
the security scope
https://www.googleapis.com/auth/classroom.addons.studentwas added to the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/classroom.addons.studentwas added to the endpoint's security schemeOauth2c - info
the security scope
https://www.googleapis.com/auth/classroom.addons.teacherwas removed from the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/classroom.addons.teacherwas removed from the endpoint's security schemeOauth2c
- info