capabilities.work

Create Assignment and Confirm

A 3-step recipe with Canvas LMS. We can help you get access.

Recipe · 3 steps

Create Assignment and Confirm

Create an assignment in an existing course and confirm it was stored.

  1. Read the target course to confirm it exists and is available before writing an assignment into it.
  2. Create the assignment in the course using the supplied name, points, due date, and submission types.
  3. Re-fetch the created assignment by id to confirm it persisted with the expected name and point value.
What you'll need to have ready
  • courseId: The Canvas course id (or sis_course_id prefixed id) to create the assignment in.
  • name: The name of the assignment.
  • description: Optional HTML description / instructions for the assignment.
  • pointsPossible: The maximum number of points the assignment is worth.
  • dueAt: Optional ISO8601 due date for the assignment.
  • submissionTypes: The accepted submission types (e.g. online_text_entry, online_upload).
  • published: Whether to publish the assignment immediately.
For your developer

Arazzo workflow canvas-lms:create-assignment-and-confirm, 3 operations: getCourse → createAssignment → getAssignment. Specs on APIs.io.