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 announcements within courses. Specifically, the "Delete Announcement" operation allows users to remove an existing announcement from a specified course by providing the course ID and the announcement ID.
Common scenarios for this node include:
- Automating the cleanup of outdated or incorrect announcements in a course.
- Integrating with other systems to synchronize announcements and remove them when no longer relevant.
- Managing course content programmatically without manual intervention in the Canvas UI.
Example use case:
- A course administrator wants to automatically delete announcements that are older than a certain date or triggered by an external event, ensuring students only see current information.
Properties
| Name | Meaning |
|---|---|
| Course ID | The unique identifier of the course containing the announcement to delete. |
| Announcement ID | The unique identifier of the announcement to be deleted 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 announcement. Typically, this will be confirmation of deletion or an empty object if successful.
Output example structure:
{
"data": {
// Response details from Canvas API about the deletion
}
}
No binary data is produced by this operation.
Dependencies
- Requires an API key credential for authenticating with the Canvas LMS API.
- The node makes HTTP requests to the Canvas LMS REST API endpoints.
- Proper permissions on the Canvas API token are necessary to delete announcements.
Troubleshooting
Error: Unauthorized or Forbidden
This usually means the API token lacks permission to delete announcements. Ensure the token has sufficient rights in Canvas.Error: Not Found
Occurs if the provided Course ID or Announcement ID does not exist or is incorrect. Verify IDs are accurate.Network or Timeout Errors
Check network connectivity and Canvas API availability.Handling Failures
If multiple items are processed and one fails, enabling "Continue On Fail" allows the node to continue processing others while reporting errors per item.