Coursework
CourseworkImplements
Fields
Number of direct child items, counting the same items children lists to this viewer.
Include children that are not posted. For a Network Host without a role in the course, requires host:read:network_posts, host:read:network, or host:write:network_posts.
Count only children with one of these visibility statuses, matching
children(statuses:). An empty list applies no filter.
Direct child items (sections/lessons/quizzes under this one), ordered by position. Children that are not posted are listed for a Host or moderator of the course, or when includeUnpublished is true for a Network Host token holding host:read:network_posts, host:read:network, or host:write:network_posts.
Returns the elements in the list that come after the specified cursor.
Returns the elements in the list that come before the specified cursor.
Returns the first n elements from the list.
Include children that are not posted. For a Network Host without a role in the course, requires host:read:network_posts, host:read:network, or host:write:network_posts.
Returns the last n elements from the list.
Only children with one of these visibility statuses. Narrows what the viewer may already see. An empty list applies no filter.
How the item is marked complete for a member. An item set to PRIMARY_MEDIA reports it only while its primary media slot holds Mighty audio or video, and reports BUTTON otherwise.
The course this item belongs to.
HTML body with formatted mentions, hashtags, and links; internal classes and attributes are stripped on external API surfaces.
Plain text body with HTML stripped.
ID of the object.
Representative image URL for the item, falling back to a default course header image when the item has no display image of its own. Null instead for a section or the overview with neither a custom thumbnail nor primary media, in a Network with continuous playback enabled: such an item has no image at all.
True when the item's content leads with audio, either as the header media or in the body. Never true at the same time as isVideo.
True when the item's content leads with a video. Never true at the same time as isAudio: audio header media wins, then video, then body audio. False on a native mobile client that has not declared it can render a native video in the primary media slot, which is served no primaryMedia node either.
Parent section or overview; null for the overview itself, and null when the parent is not posted unless the viewer is a Host or moderator of its course, or includeUnpublished is true for a Network Host token holding host:read:network_posts, host:read:network, or host:write:network_posts.
Return an unpublished parent. For a Network Host without a role in the course, requires host:read:network_posts, host:read:network, or host:write:network_posts.
Sort position within its siblings (lower comes first). Compare only between items sharing the same parent.
Number of distinct members with an active membership who have at least one attempt in the given status. Null for non-quiz coursework and for viewers who are not a host of the quiz's space.
The attempt status to count members by.
Members' attempts at this quiz, newest first. Hosts and moderators see every member's attempts (member identity and scores); members see only their own. Empty for non-quiz coursework and signed-out viewers.
Returns the elements in the list that come after the specified cursor.
Returns the elements in the list that come before the specified cursor.
Returns the first n elements from the list.
Returns the last n elements from the list.
Optionally filter to one or more attempt statuses.
Questions in this quiz, in display order. Empty for non-quiz coursework.
Returns the elements in the list that come after the specified cursor.
Returns the elements in the list that come before the specified cursor.
Returns the first n elements from the list.
Returns the last n elements from the list.
Aggregate results for this quiz. Null for non-quiz coursework and for viewers who are not a host or moderator of the quiz's space.
Resource ID for this object, for interop with the Admin API.
Visibility status.
The kind of coursework item.
When the item becomes available to a member.
Canonical web URL of the coursework item.