Canvas LMS · Arazzo Workflow

Canvas LMS Grade a Discussion-backed Assignment

Version 1.0.0

Locate a discussion topic's graded assignment, then grade a student's discussion submission.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub Learning ManagementEducationEdTechLMSLTIHigher EducationK-12Open-SourceAGPLCanvasArazzoWorkflows

Provider

canvas-lms

Workflows

grade-discussion-submission
Resolve a graded discussion's assignment and grade a student submission.
Lists discussion topics to find the graded discussion's backing assignment id, reads the student's submission for it, and posts a grade and comment.
3 steps inputs: courseId, postedGrade, textComment, userId outputs: assignmentId, grade
1
listDiscussions
List the course discussion topics to recover the assignment id that backs the first graded discussion.
2
getSubmission
Read the student's submission for the discussion's backing assignment.
3
gradeSubmission
Post the grade and optional comment to the student's discussion submission.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Canvas LMS Grade a Discussion-backed Assignment
  summary: Locate a discussion topic's graded assignment, then grade a student's discussion submission.
  description: >-
    A discussions grading flow for Canvas. Graded discussions in Canvas are
    backed by an assignment, so this workflow lists a course's discussion topics
    to recover the assignment id behind a graded discussion, reads the student's
    submission for that assignment, and posts a grade. This adapts the
    announcements/discussions theme to the operations the covered REST surface
    actually supports. Every step spells out its request inline so the flow can
    be read and executed without opening the underlying OpenAPI description.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-4740.30
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-4740.30
      capability_name: Marking & Grading Operations
      spec: canvas-lms-submissions-api-openapi.yml
      confidence: 0.85
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: discussionsApi
  url: ../openapi/canvas-lms-discussions-api-openapi.yml
  type: openapi
- name: submissionsApi
  url: ../openapi/canvas-lms-submissions-api-openapi.yml
  type: openapi
workflows:
- workflowId: grade-discussion-submission
  summary: Resolve a graded discussion's assignment and grade a student submission.
  description: >-
    Lists discussion topics to find the graded discussion's backing assignment
    id, reads the student's submission for it, and posts a grade and comment.
  inputs:
    type: object
    required:
    - courseId
    - userId
    - postedGrade
    properties:
      courseId:
        type: string
        description: The Canvas course id.
      userId:
        type: string
        description: The Canvas user id of the student whose discussion submission is graded.
      postedGrade:
        type: string
        description: The grade to post.
      textComment:
        type: string
        description: Optional feedback comment to attach.
  steps:
  - stepId: listDiscussions
    description: >-
      List the course discussion topics to recover the assignment id that backs
      the first graded discussion.
    operationId: listDiscussionTopics
    parameters:
    - name: course_id
      in: path
      value: $inputs.courseId
    - name: order_by
      in: query
      value: recent_activity
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      discussionAssignmentId: $response.body#/0/assignment_id
  - stepId: getSubmission
    description: >-
      Read the student's submission for the discussion's backing assignment.
    operationId: getSubmission
    parameters:
    - name: course_id
      in: path
      value: $inputs.courseId
    - name: assignment_id
      in: path
      value: $steps.listDiscussions.outputs.discussionAssignmentId
    - name: user_id
      in: path
      value: $inputs.userId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      submissionUserId: $response.body#/user_id
  - stepId: gradeSubmission
    description: >-
      Post the grade and optional comment to the student's discussion
      submission.
    operationId: gradeSubmission
    parameters:
    - name: course_id
      in: path
      value: $inputs.courseId
    - name: assignment_id
      in: path
      value: $steps.listDiscussions.outputs.discussionAssignmentId
    - name: user_id
      in: path
      value: $inputs.userId
    requestBody:
      contentType: application/json
      payload:
        submission:
          posted_grade: $inputs.postedGrade
        comment:
          text_comment: $inputs.textComment
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      grade: $response.body#/grade
      score: $response.body#/score
  outputs:
    assignmentId: $steps.listDiscussions.outputs.discussionAssignmentId
    grade: $steps.gradeSubmission.outputs.grade

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/canvas-lms-assign-and-grade-discussion-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.