Submissions are uniquely identified by a Section ID, Grade Item ID, User ID, and Revision ID.
Table of Contents
Fields
Revision Item
Field
Name
Description
Type
Required
revision_id
Revision ID
A unique identifier grouping a collection of items and representing a single students submission for a single assignment.
integer
created
Created
The time the revision was submitted.
integer
late
Late
Indicates whether or not this revision was turned in late.
integer
num_items
Number of Items
The number of items associated with this revision.
integer
draft
Draft
Whether or not the revision is a draft. A user can only have one active draft, and if they have an active draft they cannot create another revision until this draft is submitted or deleted.
integer {0,1}
body
Content of Revision
The content of the Revision. This is expected in POST calls to dropbox/assignment_id/create. Otherwise it is not really used.
string
Operations
create
The {action} parameter dictates whether a revision with files attached is created, or a revision is created from text or HTML. Files the action is {file}, creation from text/html the action is {create}.
file action will create a submission from file IDs passed in as file attachments
create action will look for a <body> attribute in the request body. When using create, keep in mind a user can only have one active revision. If they try to POST a file revision, they will be denied. Also, if the <draft> flag is not set, the API will default to submitting this revision. If you would like it saved as a draft the <draft> flag must be set to TRUE.
File Uploads Accepted
Path
POST https://api.schoology.com/v1/sections/{section_id}/submissions/{grade_item_id}/{action}
Content
none
Return
Revision items and drop item attachments if requested grouped by user
All the Revisions for a requested grade item, sorted by the most recent revision and grouped by user. The following query strings can (optionally) be appended to the path to filter results:
with_attachments: retrieve attachments of this piece of content.
all_revisions: optional argument to get all revisions instead of just the most recent one. Accepts a boolean.
Path
GET https://api.schoology.com/v1/sections/{section_id}/submissions/{grade_item_id}/
Content
none
Return
Revision items and drop item attachments if requested grouped by user
Revisions for a given user for a given grade item, sorted by the most recent revision. The following query strings can (optionally) be appended to the path to filter results:
with_attachments: retrieve attachments of this piece of content.
Path
GET https://api.schoology.com/v1/sections/{section_id}/submissions/{grade_item_id}/{user_id}
Content
none
Return
Revision items and drop item attachments if requested