Check whether you can take a course
check_prerequisitesCheck if you meet a course's prerequisites by comparing them against your completed courses, showing satisfied and missing requirements plus enrollment restrictions.
Instructions
Evaluate a course's prerequisite tree against the courses a student has already completed, showing exactly which requirements are met and which are missing. Also reports enrollment restrictions (major-only, etc.), which the API cannot verify automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apScores | No | AP/exam scores keyed by exam name, e.g. {"AP CALCULUS BC": 5}. | |
| courseId | Yes | The course you want to take, e.g. "COMPSCI 161". | |
| completed | No | Courses already completed. Optionally append a grade after a colon, e.g. ["I&C SCI 46:B+", "MATH 2B:A-", "I&C SCI 6B"]. Without a grade, a minimum-grade requirement is reported as unverified. |