> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.canvas.submissions.GradeOrCommentOnSubmission

- Component: `appmixer.canvas.submissions.GradeOrCommentOnSubmission`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.canvas 1.1.4](https://connectors.appmixer.com/connector/appmixer.canvas/1.1.4.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.canvas/1.1.4/component/appmixer.canvas.submissions.GradeOrCommentOnSubmission>

Add a comment or grade to a student submission in Canvas.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Course ID (`courseId`) | number | The course that the submission is submitted in. |
| Assignment ID (`assignmentId`) | number | The assignment that the submission is submitted for. |
| User ID (`userId`) | number | The user ID or anonymous ID of the individual that made the submission. |
| Anonymous ID (`isAnonymous`) | toggle | A flag to indicate if the user ID submission request is for an anonymous user or known user ID. |
| Comment (`comment`) | text | The text comment to be added to the submission. |
| Attempt (`attempt`) | number | The submission attempt to associate the comment with. |
| Group Comment Flag (`groupCommentFlag`) | toggle | Indicator if the comment is for the entire group or an individual. |
| Visibility Flag (`visibilityFlag`) | text | Indicator if the comment is visible to the submission owner. |
| Points Over Scheme Flag (`pointsOverSchemeFlag`) | toggle | Treat grade as points if the value matches a grading scheme value. |
| Submission Score (`submissionScore`) | text | Assign a score to the submission. |
| Submission Excused (`submissionExcused`) | toggle | Sets the submission to “excused” for the student. |
| Late Policy Status (`latePolicyStatus`) | text | Sets the late policy status to either “late”, “missing”, “extended”, “none”, or null. |
| Late Seconds (`lateSeconds`) | number | Sets the number of seconds the submission is allowed to be late. |
| Rubric Assessment (`rubricAssessment`) | text | If the submission is assessed using a JSON representation of the rubric it will be passed in this field. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Success or Fail (`successFail`) | object | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.canvas.submissions.GradeOrCommentOnSubmission",
  "author": "Harsha Surisetty <harsha@client.io>",
  "description": "Add a comment or grade to a student submission in Canvas.",
  "private": false,
  "auth": {
    "service": "appmixer:canvas"
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "courseId": {
            "type": "number"
          },
          "assignmentId": {
            "type": "number"
          },
          "userId": {
            "type": "number"
          },
          "isAnonymous": {
            "type": "boolean"
          },
          "comment": {
            "type": "string"
          },
          "attempt": {
            "type": "number"
          },
          "groupCommentFlag": {
            "type": "boolean"
          },
          "visibilityFlag": {
            "type": "string"
          },
          "pointsOverSchemeFlag": {
            "type": "boolean"
          },
          "submissionScore": {
            "type": "string"
          },
          "submissionExcused": {
            "type": "boolean"
          },
          "latePolicyStatus": {
            "type": "string"
          },
          "lateSeconds": {
            "type": "number"
          },
          "rubricAssessment": {
            "type": "string"
          }
        },
        "required": [
          "courseId",
          "assignmentId",
          "userId"
        ]
      },
      "inspector": {
        "inputs": {
          "courseId": {
            "type": "number",
            "index": 1,
            "label": "Course ID",
            "tooltip": "The course that the submission is submitted in.",
            "source": {
              "url": "/component/appmixer/canvas/courses/ListCourses?outPort=out",
              "data": {
                "transform": "./ListCourses#toSelectArray"
              }
            }
          },
          "assignmentId": {
            "type": "number",
            "index": 2,
            "label": "Assignment ID",
            "tooltip": "The assignment that the submission is submitted for."
          },
          "userId": {
            "type": "number",
            "index": 3,
            "label": "User ID",
            "tooltip": "The user ID or anonymous ID of the individual that made the submission."
          },
          "isAnonymous": {
            "type": "toggle",
            "index": 4,
            "label": "Anonymous ID",
            "tooltip": "A flag to indicate if the user ID submission request is for an anonymous user or known user ID."
          },
          "comment": {
            "type": "text",
            "index": 5,
            "label": "Comment",
            "tooltip": "The text comment to be added to the submission."
          },
          "attempt": {
            "type": "number",
            "index": 6,
            "label": "Attempt",
            "tooltip": "The submission attempt to associate the comment with."
          },
          "groupCommentFlag": {
            "type": "toggle",
            "index": 7,
            "label": "Group Comment Flag",
            "tooltip": "Indicator if the comment is for the entire group or an individual."
          },
          "visibilityFlag": {
            "type": "text",
            "index": 8,
            "label": "Visibility Flag",
            "tooltip": "Indicator if the comment is visible to the submission owner."
          },
          "pointsOverSchemeFlag": {
            "type": "toggle",
            "index": 9,
            "label": "Points Over Scheme Flag",
            "tooltip": "Treat grade as points if the value matches a grading scheme value."
          },
          "submissionScore": {
            "type": "text",
            "index": 10,
            "label": "Submission Score",
            "tooltip": "Assign a score to the submission."
          },
          "submissionExcused": {
            "type": "toggle",
            "index": 11,
            "label": "Submission Excused",
            "tooltip": "Sets the submission to “excused” for the student."
          },
          "latePolicyStatus": {
            "type": "text",
            "index": 12,
            "label": "Late Policy Status",
            "tooltip": "Sets the late policy status to either “late”, “missing”, “extended”, “none”, or null."
          },
          "lateSeconds": {
            "type": "number",
            "index": 13,
            "label": "Late Seconds",
            "tooltip": "Sets the number of seconds the submission is allowed to be late."
          },
          "rubricAssessment": {
            "type": "text",
            "index": 14,
            "label": "Rubric Assessment",
            "tooltip": "If the submission is assessed using a JSON representation of the rubric it will be passed in this field."
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Success or Fail",
          "value": "successFail",
          "schema": {
            "type": "object",
            "example": {
              "id": 90211,
              "user_id": 1047,
              "assignment_id": 5521,
              "score": 92,
              "grade": "92",
              "workflow_state": "graded",
              "submitted_at": "2026-09-08T17:45:00Z",
              "graded_at": "2026-09-10T09:12:00Z"
            }
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
