Upload assignment model answers or add a rubric
Add the teacher’s answer key or a rubric to an assignment model answer sheet, then start extraction.
isFinal to start extraction.Rules
- Send exactly one of
documents,rubricId, orisFinalper request. Two or more return400. documentsfollows the same file rules as the question paper: PDF, JPEG, or PNG, up to 20 MB per file, and up to 50 pages per PDF. Send either one PDF or a set of images, never both. Some mixed uploads are rejected with400Cannot mix PDF files with image filesand others are accepted without an error, so keep the two apart in your own code.rubricIdis theidof a rubric from Create a rubric. An unknown ID returns404Rubric not found.- An answer key and a rubric can both be attached, in two requests. Send
isFinallast. isFinalwith neither an answer key nor a rubric returns400No documents found for this model answer sheet.- Each path needs its trailing slash, or the
PATCHis redirected and loses its body.
Rubric not found for audio evaluation.Next step
Get an assignment model answer sheet
status is 2, or wait for the assignment_evaluation_model_answer_extraction webhook.Authorizations
Access token from Get an access token.
Path Parameters
The assignment id returned by Create an assignment. Use it exactly as returned: the lowercase form is the only one the nested paths accept.
"3c9e1f2a-7b4d-4a8e-9f1c-2d5e6a7b8c9d"
The model answer sheet id returned by Create an assignment model answer sheet.
"3b27e0be-f9e8-4c4d-977b-b315bfb292ab"
Body
The teacher's answer key: one PDF, or one or more JPEG or PNG images. The same file rules as the question paper apply: 20 MB per file, 50 pages per PDF, one PDF only, and no mixing a PDF with images.
The id of a rubric from Create a rubric. Use a rubric instead of an answer key when answers are open-ended, and always for audio answers.
"2b973c83-2830-4712-87b7-64a8c0a99035"
Send the text true to start model answer extraction. Send it on its own, as the text true. A JSON boolean is not accepted.
true, false "true"
Response
The answer key was saved, the rubric was attached, or extraction started.
ID of the model answer sheet.
"3b27e0be-f9e8-4c4d-977b-b315bfb292ab"
The answer key files, oldest first. Empty when you score with a rubric only.
The rubric attached to the model answer sheet, or {} when none is attached.
0 Open, 1 In Progress, 2 Completed, 3 Failed.
0, 1, 2, 3 2