Skip to content

Resource Collections

Resource Collections are containers for user and group resource templates.

Field Name Description Type
id Id The Schoology id of the collection. integer
title* Title The title of the collection. string
uid User Id The owner (user id) of the collection. integer
is_default Default Collection Indicates default collection type: 0 = Regular collection, 1 = Default home collection, 2 = Default Downloads collection. 0,1,2
shared_users Shared Users The number of users this collection is shared with. integer
realm Realm The realm the collection is in. string
realm_id Realm ID The realm id of the collection. integer
realm_link Realm Link A URL to the realm that owns the collection. string

* = Required

List a user’s collections

Return A list of collection objects

Create a collection

Content An object containing collection fields (see fields)

{
"title": "The title the collection"
}

Return A collection object

{
"id": 5825417,
"title": "New Collection",
"shared_users": 0,
"is_default": 0,
"uid": 48289,
"links": {
"self": "http:\/\/..."
}
}

Get a single collection

Return A collection object

{
"id": 5825417,
"title": "New Collection",
"shared_users": 1,
"is_default": 0,
"uid": 48289
}

Edit a collection

Content An object containing collection fields to update

{
"title": "The updated title"
}

Delete a collection