Steps 1 and 2 are instant: no background job, nothing to poll. Only step 3 starts one, when you finalize the model answer sheet.
Set up
You need an access token and an assignment whose questions are already extracted. If you don’t have a token, follow the Quickstart.The Rubrics and Assignment Evaluation paths all end in a slash, and it is required. Without it the API redirects, and most HTTP clients drop the request body when they follow a redirect. These APIs also answer
403, not 401, when a token is missing or expired.Step 1: Create the rubric
Send aname, and a description if you want one. You get an empty rubric back.
What you get back
What you get back
rubricCriteria stays empty until you add a criterion in step 2.Step 2: Add the criteria
Add one criterion per call. Each one needs a score range and a band for every score it can award.What you get back
What you get back
Each call returns the whole rubric, with the new criterion last in
rubricCriteria. The code above keeps the answer to the last call, so both criteria are there.scoringLogic is trimmed here. A real response holds every band you sent.Step 3: Attach the rubric to an assignment
An assignment grades against a rubric through its model answer sheet. Create the sheet, attach the rubric, then finalize it. These are three separate calls, because the API accepts only one ofdocuments, rubricId, and isFinal at a time.
What you get back
What you get back
Each call returns the model answer sheet. After step 2, Before you attach a rubric,
rubric holds the whole rubric. status is an integer: 0 Open, 1 In Progress, 2 Completed, 3 Failed.rubric is {}.status 2, submit student work with Create an assignment answer sheet and read the result with Get an evaluated assignment score.
Audio submissions are always graded against a rubric. If the assignment’s model answer sheet has no rubric, the submission is rejected with
Rubric not found for audio evaluation.Good to know
Limits
Limits
Write bands the grader can read
Write bands the grader can read
The grading model reads your band labels and reports one of them back as the student’s level, so the wording matters.
- Keep labels conventional and consistent across bands:
5 Stardown to1 Star, orLevel 4down toLevel 1. Don’t mix styles inside one criterion. - Give every score between
minScoreandmaxScoreits own band. A missing band is a score the grader has no definition for. - Describe what the student did, not what the grader should do. “No spelling errors” works better than “award full marks if perfect”.
- Keep one idea per criterion. Two criteria with three bands each are easier to grade consistently than one criterion with six.
Troubleshooting
Troubleshooting
Related
Rubrics API reference
Every field, response, and error.
Assignment Evaluation features
What rubric grading does for teachers.