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 various resources within a Canvas course environment. Specifically, for the Module - Delete operation, it allows users to delete a module from a specified course by providing the course ID and the module ID.
This functionality is useful in scenarios where course content needs to be reorganized or cleaned up by removing outdated or incorrect modules. For example, an instructor automating course maintenance can use this node to programmatically delete modules without manually navigating the Canvas interface.
Properties
Name | Meaning |
---|---|
Course ID | The unique identifier of the course containing the module to delete. |
Module ID | The unique identifier of the module to be deleted within the course. |
Output
The output JSON contains a data
field which holds the response from the Canvas API after attempting to delete the module. Typically, for a successful delete operation, this may be an empty object or confirmation data depending on the API's response.
Example output structure:
{
"data": { }
}
No binary data output is involved in this operation.
Dependencies
- Requires an API key credential for authenticating requests to the Canvas LMS API.
- The node expects the Canvas base URL and access token to be configured in the credentials.
- Network connectivity to the Canvas LMS instance is necessary.
Troubleshooting
Common issues:
- Invalid or missing Course ID or Module ID parameters will cause the API call to fail.
- Insufficient permissions for the API token to delete modules.
- Network or authentication errors when connecting to the Canvas API.
Error messages:
- Errors thrown include messages like
Error in "module" operation "delete": <API error message>
. - If the node is set to continue on failure, errors are returned in the output JSON under an
error
field.
- Errors thrown include messages like
Resolutions:
- Verify that the Course ID and Module ID are correct and exist in Canvas.
- Ensure the API token has sufficient privileges to delete modules.
- Check network connectivity and API endpoint correctness.