Table of Contents
Resource Template Objects
Field | Name | Description | Type | Required |
---|---|---|---|---|
id | Id | The Schoology Id of the template | integer | |
title | Title | The title the template. Note that documents do not require a title. | string | true |
uid | User Id | The creator of the template | integer | |
resource_notes | Resource Notes | Resource notes that can be attached to the actual template | string | |
folder_id | Folder Id | The resource folder this item is in. | integer | |
collection_id | Collection Id | The Collection this item is contained in | integer | |
type | Template type | The type of template this template item is. Note that we only support assignment, discussion, page, and document creation currently. | {assessment, assignment, discussion, page, album, document, folder} | true |
template_fields | Template Fields | Fields specific to this template type. | object |
Operations - [realm]/[realm_id]/resources
, collections/[collection_id]/resources
list
List a collection’s resources. Note: Realm resource collections are only available for groups and schools
Path | |
Content | none |
Return | An object containing the parent collection in the ‘parent’ attribute and a list of resource templates for the requested folder in the ‘resources’ attribute Pass an optional Pass an optional XML
|
create
Create a Template in the specified collection. Note: Realm resource collections are only available for groups and schools
Path | |
Content | An object containing template fields An example document template post might be: JSON XML
|
Return | An object containing template fields |
Resource Type Specific Fields
Template Fields : Page
Field | Name | Description | Type | Required |
---|---|---|---|---|
body | Body | The content of the resource Page | string |
Template Fields : Discussion
Field | Name | Description | Type | Required |
---|---|---|---|---|
body | Body | The description of the discussion | string |
Template Fields : assignment
Field | Name | Description | Type | Required |
---|---|---|---|---|
body | Body | The description of the assignment | string | |
max_points | Max Points | The max number of points for this assignment | integer |
Template Fields : assessment
Field | Name | Description | Type | Required |
---|---|---|---|---|
body | Body | The description of the assignment | string | |
max_points | Max Points | The max number of points for this assignment | integer |
Template Fields : Document
Note to create a document you need to send in an attachment with it like you do for any other content type that supports attachments. See here.
Field | Name | Description | Type | Required |
---|---|---|---|---|
document_type | Document Type | The type of content attached to this item | string |