Get Outcome Rollups
get_outcome_rollupsGet aggregated outcome rollups for a course — one score per student per outcome, or, with aggregate="course", a single course-level mean or median — optionally filtered by user_ids and outcome_ids and sorted by student or by one outcome's…
Instructions
Get aggregated outcome rollups for a course — one score per student per outcome, or, with aggregate="course", a single course-level mean or median — optionally filtered by user_ids and outcome_ids and sorted by student or by one outcome's score. Set include_courses to nest course details under linked.courses. When CANVAS_PSEUDONYMIZE_STUDENTS is enabled, linked.users entries are anonymized; use resolve_pseudonym to map one back to a real user. Use get_outcome_results instead for the raw per-alignment scores behind a rollup, or get_outcome_mastery_distribution for a mastery-level histogram across students.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exclude | No | Optional rollup exclusions for missing users or missing outcome results. | |
| sort_by | No | Sort rollups by student name or by a specific outcome score. | |
| user_ids | No | Optional Canvas user IDs (pass large IDs as strings) or SIS user IDs prefixed with "sis_user_id:". | |
| aggregate | No | Aggregate all student rollups into a single course-level rollup. | |
| course_id | Yes | The Canvas course ID. | |
| sort_order | No | Sort order to apply when sorting rollups. | |
| outcome_ids | No | Optional outcome IDs to restrict the rollups. | |
| add_defaults | No | Include default mastery colors and levels when Canvas supports it. | |
| aggregate_stat | No | Statistic to use when aggregate="course". | |
| include_courses | No | Include linked course details in the response payload. | |
| sort_outcome_id | No | Outcome ID to sort by when sort_by="outcome". |