Documents are currently supported in Courses and Schools. On the website, group documents are done through Resources. Documents are simple pieces of content that simply have one attachment. Because a document must have an attachment, all available document have attachments just like an piece of content that accepts the with_attachment query parameter. If you pass in the with_attachment parameter you will get the same response as the request without the parameter.
Fields
Field
Name
Description
Type
Required
id
ID
The Unique ID of the document
integer
no
title
Title
The Document Title
string
course_fid
Course Folder ID
The course folder ID this content is in. Only applicable if realm = course
integer
available
Available
Is this available under course completion rules
integer {0,1}
published
Published
Is this piece of content published (1) or unpublished (0)
integer {0,1}
attachments
Attachment
Attachment array
array
url
URL
For creating documents with link or embed, send the value in this field
string
display_inline
Display Inline
For creating documents with links, this field determines whether the link will open in an iframe (1) or a new tab (0)
Can be used for materials such as pre-assessments or practice work, allowing parents/students to see progress while knowing the score is not impacting a students calculated grade. This field can be used in a PUT operation. It only applies to Course Sections realm and External Tool material enabled for grading.
{0,1}
default: 1
collected_only
Collected Only
Allows teachers to simply mark materials as completed or not; useful for collecting forms or documenting in-class participation. This field can be used in a PUT operation. It only applies to Course Sections realm and External Tool material enabled for grading.
{0,1}
default: 0
auto_publish_grades
Automatically Publish Grades
Assignment grades will be visible to students and guardians as soon as they are entered.
{0,1}
default: 1
Operations
The operations below are available for the following realms (replace [realm] with the appropriate realm and ID):
POST https://api.schoology.com/v1/[realm]/documents
Content
An object containing document fields. ‘url’ or ‘file-attachments’ are required. If both are given, the ‘file-attachments’ will be respected and ‘url’ ignored