canvas quizzes questions create
canvas quizzes questions create¶
Create a new question
Synopsis¶
Create a new question in a quiz.
Examples:
canvas quizzes questions create --course-id 123 --quiz-id 456 --text "What is 2+2?" --type multiple_choice_question --points 10
Options¶
--correct-comments string Comments for correct answer
--course-id int Course ID (required)
-h, --help help for create
--incorrect-comments string Comments for incorrect answer
--name string Question name
--points float Points possible
--quiz-id int Quiz ID (required)
--text string Question text (required)
--type string Question type (default "multiple_choice_question")
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¶
- canvas quizzes questions - Manage quiz questions