Context.Data
The data that makes up a context.
Declaration
object Context.DataProperties
| Name | Type | Description |
|---|---|---|
customTypeName | string | A name that the system presents to the user if you choose the custom context type. The API ignores this field if the |
displayOrder | number | The position of a context relative to its siblings. For the equivalent property in your app, see displayOrder. |
identifierPath Required | [string] | The identifier path, given as an array of strings, that locates the context within the data store’s context hierarchy. Each string in the array represents a context, starting from the main app context, through any ancestor contexts, down to the child context. For the equivalent property in your app, see identifierPath. Like in your app, limit identifier paths to a maximum of eight entries, and 256 total characters. Unlike in your app, when communicating with the ClassKit Catalog API, you must explicitly specify the main app context as part of the identifier path. |
isAssignable | boolean | A Boolean that indicates whether teachers can assign the context as a task. For the equivalent property in your app, see isAssignable. |
progressReportingCapabilities | [Context.Data.ProgressReportingCapabilities] | The kinds of progress reporting that the context can perform. For the equivalent property in your app, see progressReportingCapabilities. If you don’t include a |
suggestedAge | [number] | The range of ages, measured in years, for which you deem a context’s content suitable. For the equivalent property in your app, see suggestedAge. Format the age range as an array with two integers, the first of which indicates a lower bound (set to If you don’t set a value for this field, the system assumes suitability for all ages. |
suggestedCompletionTime | [number] | A suggested time range to complete a task, measured in minutes. For the equivalent property in your app, see suggestedCompletionTime. Format the completion time range as an array with two integers, the first of which indicates a lower bound (set to |
summary | string | An optional, user-visible description of the context. For the equivalent property in your app, see summary. |
thumbnailId | string | An identifier for the thumbnail associated with the context. To access a thumbnail in your app, see thumbnail. When creating a context, provide an identifier, and then use the same identifier when you upload the corresponding thumbnail image with a call to Create or Replace a Thumbnail. |
title Required | string | The name of the context as it appears to users, which must contain at least one non-whitespace character. For the equivalent property in your app, see title. |
topic | string | The area of study to which a context relates. For the equivalent property in your app, see topic. |
type Required | string | The kind of content a context represents. For the equivalent property in your app, see type. |
universalLinkURL | string | A URL that leads to the content in your app associated with the current context. For the equivalent property in your app, see universalLinkURL. |
Mentioned in
Discussion
The description for each field includes a link to the equivalent property of the CLSContext class.