Skip to content

canvas modules items update

canvas modules items update

Update a module item

Synopsis

Update an existing module item.

Examples:

canvas modules items update --course-id 123 --module-id 456 789 --title "New Title"
canvas modules items update --course-id 123 --module-id 456 789 --position 2
canvas modules items update --course-id 123 --module-id 456 789 --published
canvas modules items update --course-id 123 --module-id 456 789 --move-to-module 555
canvas modules items update <item-id> [flags]

Options

      --completion-type string   Completion requirement: must_view, must_contribute, must_submit, must_mark_done, min_score
      --course-id int            Course ID (required)
  -h, --help                     help for update
      --indent int               Indent level (0-based)
      --min-score float          Minimum score for min_score completion type
      --module-id int            Module ID (required)
      --move-to-module int       Move item to a different module
      --new-tab                  Open in new tab (for ExternalTool)
      --position int             New position in the module
      --published                Publish the item
      --title string             New item title

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")
      --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 25-Jan-2026