Skip to content
Woolf Help Center home
Woolf Help Center home

➕ 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

courseId

ID!

ID of the course to which this resource belongs.

resource

ResourceCreateInput!

Resource details, including name, type, and optional attributes.

Input Object: ResourceCreateInput

Field

Type

Description

name

String!

Name of the resource.

kind

ResourceKind!

Type of resource (ASSIGNMENT, MEETING, PUBLICATION).

isGradeRequired

Boolean

Indicates whether grading is required for this resource (default: true).

cohortName

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.

externalId

String

External system identifier for this resource.

content

String

Text content or instructions for the resource.

workload

Int

Estimated workload required to complete the resource.

weightIds

[ID!]

List of grading weight categories applicable to this resource.

assets

[AssetInput!]

List of uploaded attachments related to the resource.

tags

[String!]

Tags assigned to categorize the resource.

teacherIds

[ID!]

List of teacher IDs assigned to manage this resource.

Response Fields

Field

Type

Description

resource

Resource!

Details of the newly created resource.

assets

[AssetUpload!]!

List of uploaded assets linked to the resource.

🚀 Request (Try It)