➕ Add Resource
The addResource mutation allows an instructor to create a new learning resource for a course. Resources can include assignments, meetings, publications, and more.
Input Parameters
Parameter | Type | Description |
|---|---|---|
| ID! | ID of the course to which this resource belongs. |
| ResourceCreateInput! | Resource details, including name, type, and optional attributes. |
Input Object: ResourceCreateInput
Field | Type | Description |
|---|---|---|
| String! | Name of the resource. |
| ResourceKind! | Type of resource ( |
| Boolean | Indicates whether grading is required for this resource (default: |
| String | A custom label used to identify the student cohort associated with this resource. This helps colleges distinguish between different delivery groups for the same course. If provided, the cohort name must be unique per course and will be reused for matching in compliance indicators. |
| String | External system identifier for this resource. |
| String | Text content or instructions for the resource. |
| Int | Estimated workload required to complete the resource. |
| [ID!] | List of grading weight categories applicable to this resource. |
| [AssetInput!] | List of uploaded attachments related to the resource. |
| [String!] | Tags assigned to categorize the resource. |
| [ID!] | List of teacher IDs assigned to manage this resource. |
Response Fields
Field | Type | Description |
|---|---|---|
| Resource! | Details of the newly created resource. |
| [AssetUpload!]! | List of uploaded assets linked to the resource. |