Get Outcome Mastery Distribution
get_outcome_mastery_distributionGet a mastery-level histogram for outcomes in a course — how many students fall into each rating band — optionally filtered by outcome_ids and student_ids and excluding missing user rollups or missing outcome results.
Instructions
Get a mastery-level histogram for outcomes in a course — how many students fall into each rating band — optionally filtered by outcome_ids and student_ids and excluding missing user rollups or missing outcome results. Set include_alignment_distributions to also break down scores by contributing alignment. Use get_outcome_rollups instead for each student's individual aggregated score, or get_outcome_results for the raw per-alignment scores.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exclude | No | Optional exclusions for missing users or missing outcome results. | |
| course_id | Yes | The Canvas course ID. | |
| outcome_ids | No | Optional outcome IDs to restrict the distribution results. | |
| student_ids | No | Optional Canvas student IDs (pass large IDs as strings) or SIS user IDs prefixed with "sis_user_id:". | |
| add_defaults | No | Include default mastery colors and levels when Canvas supports it. | |
| only_assignment_alignments | No | When including alignment distributions, limit them to assignments only. | |
| show_unpublished_assignments | No | Include unpublished assignments in alignment distributions. | |
| include_alignment_distributions | No | Include contributing score distributions for alignments. |