Actions57
- Course Actions
- User Actions
- Assignment Actions
- Module Actions
- Page Actions
- Discussion Actions
- File Actions
- Announcement Actions
- Quiz Actions
- Submission Actions
- Enrollment Actions
- Group Actions
- Rubric Actions
Overview
This node integrates with the Canvas LMS API to manage assignments within a course. Specifically, the Assignment - Create operation allows users to create new assignments in a specified course on Canvas.
Typical use cases include automating the creation of coursework for students, setting up grading criteria, and scheduling assignment deadlines programmatically as part of an educational workflow. For example, an instructor can use this node to automatically generate assignments based on a curriculum schedule or import assignments from another system.
Properties
Name | Meaning |
---|---|
Course ID | The unique identifier of the course where the assignment will be created. |
Assignment Name | The title or name of the assignment to be created. |
Assignment Description | A detailed description or instructions for the assignment (supports rich text/HTML). |
Points Possible | The maximum number of points that can be earned on the assignment (default is 100). |
Due Date | The deadline by which the assignment must be submitted (optional). |
Output
The node outputs JSON data containing the details of the newly created assignment as returned by the Canvas LMS API. The output structure includes at least one top-level field:
data
: An object representing the created assignment, including its ID, name, description, points possible, due date, and other metadata provided by Canvas.
No binary data output is produced by this operation.
Example output snippet:
{
"data": {
"id": 12345,
"name": "Assignment Name",
"description": "Detailed description here",
"points_possible": 100,
"due_at": "2024-07-01T23:59:00Z",
...
}
}
Dependencies
- Requires an active connection to the Canvas LMS API.
- Needs an API authentication token credential configured in n8n to authorize requests.
- The base URL of the Canvas instance and access token are required for API calls.
Troubleshooting
- Missing or invalid Course ID: Ensure the Course ID is correct and the authenticated user has permission to create assignments in that course.
- API authentication errors: Verify that the API token credential is valid and has sufficient permissions.
- Invalid input data: Check that required fields like Assignment Name are provided and correctly formatted.
- Network or API errors: Temporary network issues or Canvas API downtime may cause failures; retrying later might help.
- Error messages typically include the resource and operation context, e.g.,
Error in "assignment" operation "create": <message>
. Use these messages to identify the problem area.