Canvas LMS icon

Canvas LMS

Work with Canvas LMS API and receive events

Overview

This node interacts with the Canvas LMS API to manage pages within a course. Specifically, the Page Delete operation allows users to delete a specific page from a given course by providing the course ID and the page ID. This is useful for automating content management in Canvas courses, such as removing outdated or incorrect pages without manual intervention.

Practical example:
An educational institution uses this node in an automation workflow to clean up old course materials at the end of a semester by deleting pages that are no longer relevant.

Properties

Name Meaning
Course ID The unique identifier of the course containing the page to be deleted.
Page ID The unique identifier of the page to delete within the specified course.

Output

The output JSON contains a data field which holds the response from the Canvas API after attempting to delete the page. Typically, for a delete operation, this may be an empty object or confirmation data indicating successful deletion.

Example output structure:

{
  "data": {}
}

No binary data is output by this operation.

Dependencies

  • Requires an API key credential for authenticating with the Canvas LMS API.
  • The node must be configured with valid Canvas LMS API credentials (URL and access token).
  • Network connectivity to the Canvas LMS instance is required.

Troubleshooting

  • Common issues:

    • Invalid or missing Course ID or Page ID will cause the API call to fail.
    • Insufficient permissions for the API token to delete pages.
    • Network or authentication errors when connecting to the Canvas API.
  • Error messages:

    • Errors thrown include messages like Error in "page" operation "delete": <API error message>.
    • If the node is set to continue on failure, errors will appear in the output JSON under an error field.
  • Resolutions:

    • Verify that the Course ID and Page ID are correct and exist in Canvas.
    • Ensure the API token has the necessary permissions to delete pages.
    • Check network connectivity and API endpoint URL configuration.
    • Review Canvas API rate limits or restrictions if requests fail repeatedly.

Links and References

Discussion