v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1310484273.7 KB
courses

Returns all attachments created by an add-on under the post. Requires the add-on to have active attachments on the post or have permission to create new attachments on the post. 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.

get/v1/courses/{courseId}/posts/{postId}/addOnAttachments

Path parameters

courseIdstring required

Required. Identifier of the course.

postIdstring required

Optional. Identifier of the post under the course whose attachments to enumerate. Deprecated, use item_id instead.

Query parameters

itemIdstring

Identifier of the Announcement, CourseWork, or CourseWorkMaterial whose attachments should be enumerated. This field is required, but is not marked as such while we are migrating from post_id.

pageSizeinteger

The maximum number of attachments to return. The service may return fewer than this value. If unspecified, at most 20 attachments will be returned. The maximum value is 20; values above 20 will be coerced to 20.

pageTokenstring

A page token, received from a previous ListAddOnAttachments call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListAddOnAttachments must match the call that provided the page token.

Response

Successful response