Skip to content

canvas quizzes submissions update

canvas quizzes submissions update

Update question scores, comments or fudge points on a quiz submission

Synopsis

Update a completed quiz submission's per-question scores and comments, and/or its fudge points (Canvas "Update student question scores and comments").

--attempt is required by Canvas and must refer to an already completed attempt. --question-score and --question-comment take = and may be repeated. Only the questions you name are touched.

Examples:

canvas quizzes submissions update 789 --course-id 123 --quiz-id 456 --attempt 1 --fudge-points 2
canvas quizzes submissions update 789 --course-id 123 --quiz-id 456 --attempt 1 \
--question-score 1001=2.5 --question-comment 1001="Partial credit"

canvas quizzes submissions update 789 --course-id 123 --quiz-id 456 --attempt 2 \ --question-score 1001=0 --question-score 1002=5

canvas quizzes submissions update <submission-id> [flags]

Options

      --attempt int                    Attempt number to update; must already be completed (required)
      --course-id int                  Course ID (required)
      --fudge-points float             Points to fudge the total score by (positive or negative)
  -h, --help                           help for update
      --question-comment stringArray   Per-question comment as <question-id>=<text> (repeatable)
      --question-score stringArray     Per-question score as <question-id>=<score> (repeatable)
      --quiz-id int                    Quiz ID (required)

Options inherited from parent commands

      --as-user int       Masquerade as another user (admin feature, requires permission)
      --columns strings   Select specific columns to display (comma-separated)
      --config string     config file (default is $HOME/.canvas-cli/config.yaml)
      --dry-run           Print curl commands instead of executing requests
      --filter string     Filter results by text (case-insensitive substring match)
      --instance string   Canvas instance URL (overrides config)
      --limit int         Limit number of results for list operations (0 = unlimited)
      --no-cache          Disable caching of API responses
  -o, --output string     Output format: table, json, yaml, csv (default "table")
      --quiet             Suppress informational messages, only output data and errors
      --show-token        Show actual token in dry-run output (default: redacted)
      --sort string       Sort results by field (prefix with - for descending, e.g., -name)
  -v, --verbose           Enable verbose output

SEE ALSO

Auto generated by spf13/cobra on 18-Sep-2026