Find or Create Assignment
A 3-step recipe with Canvas LMS. We can help you get access.
Recipe · 3 steps
Find or Create Assignment
with Canvas LMS
Upsert an assignment into a course by name, creating it only if absent.
- Search the course assignments using the supplied name as the search term, returning matching assignments.
- Read the matched assignment back by id to return its full record.
- Create a new assignment with the supplied name and point value when no existing assignment matched.
What you'll need to have ready
- courseId: The Canvas course id to search and write into.
- name: The assignment name to search for and create if missing.
- pointsPossible: The maximum points for the assignment when it must be created.
For your developer
Arazzo workflow canvas-lms:find-or-create-assignment, 3 operations: listAssignments → getAssignment → createAssignment. Specs on APIs.io.