We have relocated to Instructure Developer Documentation Portal. 🎉 Please update your bookmarks. This page will automatically redirect after July 1, 2026.
Submissions API
API for accessing and updating submissions for an assignment. The submission id in these URLs is the id of the student in the course, there is no separate submission id exposed in these APIs.
All submission actions can be performed with either the course id, or the course section id. SIS ids can be used, prefixed by "sis_course_id:" or "sis_section_id:" as described in the API documentation on SIS IDs.
A MediaComment object looks like:
{
"content-type": "audio/mp4",
"display_name": "something",
"media_id": "3232",
"media_type": "audio",
"url": "http://example.com/media_url"
}
A SubmissionComment object looks like:
{
"id": 37,
"author_id": 134,
"author_name": "Toph Beifong",
// Abbreviated user object UserDisplay (see users API).
"author": "{}",
"comment": "Well here's the thing...",
"created_at": "2012-01-01T01:00:00Z",
"edited_at": "2012-01-02T01:00:00Z",
"media_comment": null
}
A Submission object looks like:
{
// The submission's assignment id
"assignment_id": 23,
// The submission's assignment (see the assignments API) (optional)
"assignment": null,
// The submission's course (see the course API) (optional)
"course": null,
// This is the submission attempt number.
"attempt": 1,
// The content of the submission, if it was submitted directly in a text field.
"body": "There are three factors too...",
// The grade for the submission, translated into the assignment grading scheme
// (so a letter grade, for example).
"grade": "A-",
// A boolean flag which is false if the student has re-submitted since the
// submission was last graded.
"grade_matches_current_submission": true,
// URL to the submission. This will require the user to log in.
"html_url": "http://example.com/courses/255/assignments/543/submissions/134",
// URL to the submission preview. This will require the user to log in.
"preview_url": "http://example.com/courses/255/assignments/543/submissions/134?preview=1",
// The raw score
"score": 13.5,
// Associated comments for a submission (optional)
"submission_comments": null,
// The types of submission ex:
// ('online_text_entry'|'online_url'|'online_upload'|'online_quiz'|'media_record
// ing'|'student_annotation')
"submission_type": "online_text_entry",
// The timestamp when the assignment was submitted
"submitted_at": "2012-01-01T01:00:00Z",
// The URL of the submission (for 'online_url' submissions).
"url": null,
// The id of the user who created the submission
"user_id": 134,
// The id of the user who graded the submission. This will be null for
// submissions that haven't been graded yet. It will be a positive number if a
// real user has graded the submission and a negative number if the submission
// was graded by a process (e.g. Quiz autograder and autograding LTI tools).
// Specifically autograded quizzes set grader_id to the negative of the quiz id.
// Submissions autograded by LTI tools set grader_id to the negative of the tool
// id.
"grader_id": 86,
"graded_at": "2012-01-02T03:05:34Z",
// The submissions user (see user API) (optional)
"user": null,
// Whether the submission was made after the applicable due date
"late": false,
// Whether the assignment is visible to the user who submitted the assignment.
// Submissions where `assignment_visible` is false no longer count towards the
// student's grade and the assignment can no longer be accessed by the student.
// `assignment_visible` becomes false for submissions that do not have a grade
// and whose assignment is no longer assigned to the student's section.
"assignment_visible": true,
// Whether the assignment is excused. Excused assignments have no impact on a
// user's grade.
"excused": true,
// Whether the assignment is missing.
"missing": true,
// The status of the submission in relation to the late policy. Can be late,
// missing, extended, none, or null.
"late_policy_status": "missing",
// The amount of points automatically deducted from the score by the
// missing/late policy for a late or missing assignment.
"points_deducted": 12.3,
// The amount of time, in seconds, that an submission is late by.
"seconds_late": 300,
// The current state of the submission
"workflow_state": "submitted",
// Extra submission attempts allowed for the given user and assignment.
"extra_attempts": 10,
// A unique short ID identifying this submission without reference to the owning
// user. Only included if the caller has administrator access for the current
// account.
"anonymous_id": "acJ4Q",
// The date this submission was posted to the student, or nil if it has not been
// posted.
"posted_at": "2020-01-02T11:10:30Z",
// The read status of this submission for the given user (optional). Including
// read_status will mark submission(s) as read.
"read_status": "read",
// This indicates whether the submission has been reassigned by the instructor.
"redo_request": true
}
Submit an assignment SubmissionsController#create
POST /api/v1/courses/:course_id/assignments/:assignment_id/submissions
url:POST|/api/v1/courses/:course_id/assignments/:assignment_id/submissions
POST /api/v1/sections/:section_id/assignments/:assignment_id/submissions
url:POST|/api/v1/sections/:section_id/assignments/:assignment_id/submissions
Request Parameters:
| Parameter | Type | Description | |
|---|---|---|---|
| comment[text_comment] | string | Include a textual comment with the submission. | |
| submission[group_comment] | boolean | Whether or not this comment should be sent to the entire group (defaults to false). Ignored if this is not a group assignment or if no text_comment is provided. | |
| submission[submission_type] | Required | string |
The type of submission being made. The assignment submission_types must
include this submission type as an allowed option, or the submission will be rejected with a 400 error.
The submission_type given determines which of the following parameters is
used. For instance, to submit a URL, +submission[submission_type]+ must be
set to "online_url", otherwise the +submission[url]+ parameter will be
ignored.
"basic_lti_launch" requires the assignment submission_type "online" or "external_tool"
Allowed values: |
| submission[body] | string | Submit the assignment as an HTML document snippet. Note this HTML snippet will be sanitized using the same ruleset as a submission made from the Canvas web UI. The sanitized HTML will be returned in the response as the submission body. Requires a submission_type of "online_text_entry". | |
| submission[url] | string | Submit the assignment as a URL. The URL scheme must be "http" or "https", no "ftp" or other URL schemes are allowed. If no scheme is given (e.g. "www.example.com") then "http" will be assumed. Requires a submission_type of "online_url" or "basic_lti_launch". | |
| submission[file_ids][] | integer | Submit the assignment as a set of one or more previously uploaded files residing in the submitting user's files section (or the group's files section, for group assignments). To upload a new file to submit, see the submissions Upload a file API. Requires a submission_type of "online_upload". | |
| submission[media_comment_id] | string | The media comment id to submit. Media comment ids can be submitted via this API, however, note that there is not yet an API to generate or list existing media comments, so this functionality is currently of limited use. Requires a submission_type of "media_recording". | |
| submission[media_comment_type] | string |
The type of media comment being submitted.
Allowed values: |
|
| submission[user_id] | integer | Submit on behalf of the given user. Requires grading permission. | |
| submission[annotatable_attachment_id] | integer | The Attachment ID of the document being annotated. This should match the annotatable_attachment_id on the assignment. Requires a submission_type of "student_annotation". | |
| submission[submitted_at] | DateTime | Choose the time the submission is listed as submitted at. Requires grading permission. |
List assignment submissions SubmissionsApiController#index
GET /api/v1/courses/:course_id/assignments/:assignment_id/submissions
url:GET|/api/v1/courses/:course_id/assignments/:assignment_id/submissions
GET /api/v1/sections/:section_id/assignments/:assignment_id/submissions
url:GET|/api/v1/sections/:section_id/assignments/:assignment_id/submissions
Request Parameters:
| Parameter | Type | Description | |
|---|---|---|---|
| include[] | string |
Associations to include with the group. "group" will add group_id and group_name.
Allowed values: |
|
| grouped | boolean | If this argument is true, the response will be grouped by student groups. |
API response field:
-
assignment_id
The unique identifier for the assignment.
-
user_id
The id of the user who submitted the assignment.
-
grader_id
The id of the user who graded the submission. This will be null for submissions that haven't been graded yet. It will be a positive number if a real user has graded the submission and a negative number if the submission was graded by a process (e.g. Quiz autograder and autograding LTI tools). Specifically autograded quizzes set grader_id to the negative of the quiz id. Submissions autograded by LTI tools set grader_id to the negative of the tool id.
-
canvadoc_document_id
The id for the canvadoc document associated with this submission, if it was a file upload.
-
submitted_at
The timestamp when the assignment was submitted, if an actual submission has been made.
-
score
The raw score for the assignment submission.
-
attempt
If multiple submissions have been made, this is the attempt number.
-
body
The content of the submission, if it was submitted directly in a text field.
-
grade
The grade for the submission, translated into the assignment grading scheme (so a letter grade, for example).
-
grade_matches_current_submission
A boolean flag which is false if the student has re-submitted since the submission was last graded.
-
preview_url
Link to the URL in canvas where the submission can be previewed. This will require the user to log in.
-
redo_request
If the submission was reassigned
-
url
If the submission was made as a URL.
-
late
Whether the submission was made after the applicable due date.
-
assignment_visible
Whether this assignment is visible to the user who submitted the assignment.
-
workflow_state
The current status of the submission. Possible values: “submitted”, “unsubmitted”, “graded”, “pending_review”
List submissions for multiple assignments SubmissionsApiController#for_students
GET /api/v1/courses/:course_id/students/submissions
url:GET|/api/v1/courses/:course_id/students/submissions
GET /api/v1/sections/:section_id/students/submissions
url:GET|/api/v1/sections/:section_id/students/submissions
Request Parameters:
| Parameter | Type | Description | |
|---|---|---|---|
| student_ids[] | string | List of student ids to return submissions for. If this argument is omitted, return submissions for the calling user. Students may only list their own submissions. Observers may only list those of associated students. The special id "all" will return submissions for all students in the course/section as appropriate. | |
| assignment_ids[] | string | List of assignments to return submissions for. If none are given, submissions for all assignments are returned. | |
| grouped | boolean | If this argument is present, the response will be grouped by student, rather than a flat array of submissions. | |
| post_to_sis | boolean | If this argument is set to true, the response will only include submissions for assignments that have the post_to_sis flag set to true and user enrollments that were added through sis. | |
| submitted_since | DateTime | If this argument is set, the response will only include submissions that were submitted after the specified date_time. This will exclude submissions that do not have a submitted_at which will exclude unsubmitted submissions. The value must be formatted as ISO 8601 YYYY-MM-DDTHH:MM:SSZ. | |
| graded_since | DateTime | If this argument is set, the response will only include submissions that were graded after the specified date_time. This will exclude submissions that have not been graded. The value must be formatted as ISO 8601 YYYY-MM-DDTHH:MM:SSZ. | |
| grading_period_id | integer | The id of the grading period in which submissions are being requested (Requires grading periods to exist on the account) | |
| workflow_state | string |
The current status of the submission
Allowed values: |
|
| enrollment_state | string |
The current state of the enrollments. If omitted will include all
enrollments that are not deleted.
Allowed values: |
|
| state_based_on_date | boolean | If omitted it is set to true. When set to false it will ignore the effective state of the student enrollments and use the workflow_state for the enrollments. The argument is ignored unless enrollment_state argument is also passed. | |
| order | string |
The order submissions will be returned in. Defaults to "id". Doesn't
affect results for "grouped" mode.
Allowed values: |
|
| order_direction | string |
Determines whether ordered results are returned in ascending or descending
order. Defaults to "ascending". Doesn't affect results for "grouped" mode.
Allowed values: |
|
| include[] | string |
Associations to include with the group. `total_scores` requires the
`grouped` argument.
Allowed values: |
Example Response:
# Without grouped:
[
{ "assignment_id": 100, grade: 5, "user_id": 1, ... },
{ "assignment_id": 101, grade: 6, "user_id": 2, ... }
# With grouped:
[
{
"user_id": 1,
"submissions": [
{ "assignment_id": 100, grade: 5, ... },
{ "assignment_id": 101, grade: 6, ... }
]
}
]
Get a single submission SubmissionsApiController#show
GET /api/v1/courses/:course_id/assignments/:assignment_id/submissions/:user_id
url:GET|/api/v1/courses/:course_id/assignments/:assignment_id/submissions/:user_id
GET /api/v1/sections/:section_id/assignments/:assignment_id/submissions/:user_id
url:GET|/api/v1/sections/:section_id/assignments/:assignment_id/submissions/:user_id
Request Parameters:
| Parameter | Type | Description | |
|---|---|---|---|
| include[] | string |
Associations to include with the group.
Allowed values: |
Get a single submission by anonymous id SubmissionsApiController#show_anonymous
GET /api/v1/courses/:course_id/assignments/:assignment_id/anonymous_submissions/:anonymous_id
url:GET|/api/v1/courses/:course_id/assignments/:assignment_id/anonymous_submissions/:anonymous_id
GET /api/v1/sections/:section_id/assignments/:assignment_id/anonymous_submissions/:anonymous_id
url:GET|/api/v1/sections/:section_id/assignments/:assignment_id/anonymous_submissions/:anonymous_id
Request Parameters:
| Parameter | Type | Description | |
|---|---|---|---|
| include[] | string |
Associations to include with the group.
Allowed values: |
Upload a file SubmissionsApiController#create_file
POST /api/v1/courses/:course_id/assignments/:assignment_id/submissions/:user_id/files
url:POST|/api/v1/courses/:course_id/assignments/:assignment_id/submissions/:user_id/files
POST /api/v1/sections/:section_id/assignments/:assignment_id/submissions/:user_id/files
url:POST|/api/v1/sections/:section_id/assignments/:assignment_id/submissions/:user_id/files
Grade or comment on a submission SubmissionsApiController#update
PUT /api/v1/courses/:course_id/assignments/:assignment_id/submissions/:user_id
url:PUT|/api/v1/courses/:course_id/assignments/:assignment_id/submissions/:user_id
PUT /api/v1/sections/:section_id/assignments/:assignment_id/submissions/:user_id
url:PUT|/api/v1/sections/:section_id/assignments/:assignment_id/submissions/:user_id
Request Parameters:
| Parameter | Type | Description | |
|---|---|---|---|
| comment[text_comment] | string | Add a textual comment to the submission. | |
| comment[attempt] | integer | The attempt number (starts at 1) to associate the comment with. | |
| comment[group_comment] | boolean | Whether or not this comment should be sent to the entire group (defaults to false). Ignored if this is not a group assignment or if no text_comment is provided. | |
| comment[media_comment_id] | string | Add an audio/video comment to the submission. Media comments can be added via this API, however, note that there is not yet an API to generate or list existing media comments, so this functionality is currently of limited use. | |
| comment[media_comment_type] | string |
The type of media comment being added.
Allowed values: |
|
| comment[file_ids][] | integer | Attach files to this comment that were previously uploaded using the Submission Comment API's files action | |
| include[] | string |
Associations to include with the submission. "submission_comments" is always included by default.
- "submission_comments": Comments on the submission (always included)
- "visibility": Whether the assignment is visible to the owner of the submission
- "sub_assignment_submissions": Sub-assignment submissions for discussion checkpoints
- "peer_review_submissions": Peer review submission data when peer review allocation and grading is enabled
- "provisional_grades": Provisional grades (only available for moderated assignments)
- "group": Group information (id and name) for group assignments
Allowed values: |
|
| prefer_points_over_scheme | boolean | Treat posted_grade as points if the value matches a grading scheme value | |
| submission[posted_grade] | string | Assign a score to the submission, updating both the "score" and "grade" fields on the submission record. This parameter can be passed in a few different formats: points:: A floating point or integral value, such as "13.5". The grade will be interpreted directly as the score of the assignment. Values above assignment.points_possible are allowed, for awarding extra credit. percentage:: A floating point value appended with a percent sign, such as "40%". The grade will be interpreted as a percentage score on the assignment, where 100% == assignment.points_possible. Values above 100% are allowed, for awarding extra credit. letter grade:: A letter grade, following the assignment's defined letter grading scheme. For example, "A-". The resulting score will be the high end of the defined range for the letter grade. For instance, if "B" is defined as 86% to 84%, a letter grade of "B" will be worth 86%. The letter grade will be rejected if the assignment does not have a defined letter grading scheme. For more fine-grained control of scores, pass in points or percentage rather than the letter grade. "pass/complete/fail/incomplete":: A string value of "pass" or "complete" will give a score of 100%. "fail" or "incomplete" will give a score of 0. Note that assignments with grading_type of "pass_fail" can only be assigned a score of 0 or assignment.points_possible, nothing inbetween. If a posted_grade in the "points" or "percentage" format is sent, the grade will only be accepted if the grade equals one of those two values. | |
| submission[excuse] | boolean | Sets the "excused" status of an assignment. | |
| submission[late_policy_status] | string | Sets the late policy status to either "late", "missing", "extended", "none", or null. NB: "extended" values can only be set in the UI when the "UI features for 'extended' Submissions" Account Feature is on | |
| submission[sticker] | string |
Sets the sticker for the submission.
Allowed values: |
|
| submission[seconds_late_override] | integer | Sets the seconds late if late policy status is "late" | |
| submission[peer_review] | boolean | When true, updates the peer review sub assignment submission instead of the parent assignment submission. The parent assignment must have peer reviews enabled, the peer_review_allocation_and_grading feature flag must be enabled for the course, and the assignment must have an associated peer review sub assignment. If any of these conditions are not met, the API will return a 422 error. | |
| rubric_assessment | RubricAssessment | Assign a rubric assessment to this assignment submission. The sub-parameters here depend on the rubric for the assignment. The general format is, for each row in the rubric: The points awarded for this row. rubric_assessment[criterion_id][points] The rating id for the row. rubric_assessment[criterion_id][rating_id] Comments to add for this row. rubric_assessment[criterion_id][comments] For example, if the assignment rubric is (in JSON format): !!!javascript [ { 'id': 'crit1', 'points': 10, 'description': 'Criterion 1', 'ratings': [ { 'id': 'rat1', 'description': 'Good', 'points': 10 }, { 'id': 'rat2', 'description': 'Poor', 'points': 3 } ] }, { 'id': 'crit2', 'points': 5, 'description': 'Criterion 2', 'ratings': [ { 'id': 'rat1', 'description': 'Exemplary', 'points': 5 }, { 'id': 'rat2', 'description': 'Complete', 'points': 5 }, { 'id': 'rat3', 'description': 'Incomplete', 'points': 0 } ] } ] Then a possible set of values for rubric_assessment would be: rubric_assessment[crit1][points]=3&rubric_assessment[crit1][rating_id]=rat1&rubric_assessment[crit2][points]=5&rubric_assessment[crit2][rating_id]=rat2&rubric_assessment[crit2][comments]=Well%20Done. |
Grade or comment on a submission by anonymous id SubmissionsApiController#update_anonymous
PUT /api/v1/courses/:course_id/assignments/:assignment_id/anonymous_submissions/:anonymous_id
url:PUT|/api/v1/courses/:course_id/assignments/:assignment_id/anonymous_submissions/:anonymous_id
PUT /api/v1/sections/:section_id/assignments/:assignment_id/anonymous_submissions/:anonymous_id
url:PUT|/api/v1/sections/:section_id/assignments/:assignment_id/anonymous_submissions/:anonymous_id
Request Parameters:
| Parameter | Type | Description | |
|---|---|---|---|
| comment[text_comment] | string | Add a textual comment to the submission. | |
| comment[group_comment] | boolean | Whether or not this comment should be sent to the entire group (defaults to false). Ignored if this is not a group assignment or if no text_comment is provided. | |
| comment[media_comment_id] | string | Add an audio/video comment to the submission. Media comments can be added via this API, however, note that there is not yet an API to generate or list existing media comments, so this functionality is currently of limited use. | |
| comment[media_comment_type] | string |
The type of media comment being added.
Allowed values: |
|
| comment[file_ids][] | integer | Attach files to this comment that were previously uploaded using the Submission Comment API's files action | |
| include[] | string |
Associations to include with the submission. "submission_comments" is always included by default.
- "submission_comments": Comments on the submission (always included)
- "visibility": Whether the assignment is visible to the owner of the submission
- "sub_assignment_submissions": Sub-assignment submissions for discussion checkpoints
- "peer_review_submissions": Peer review submission data when peer review allocation and grading is enabled
- "provisional_grades": Provisional grades (only available for moderated assignments)
- "group": Group information (id and name) for group assignments
Allowed values: |
|
| submission[posted_grade] | string | Assign a score to the submission, updating both the "score" and "grade" fields on the submission record. This parameter can be passed in a few different formats: points:: A floating point or integral value, such as "13.5". The grade will be interpreted directly as the score of the assignment. Values above assignment.points_possible are allowed, for awarding extra credit. percentage:: A floating point value appended with a percent sign, such as "40%". The grade will be interpreted as a percentage score on the assignment, where 100% == assignment.points_possible. Values above 100% are allowed, for awarding extra credit. letter grade:: A letter grade, following the assignment's defined letter grading scheme. For example, "A-". The resulting score will be the high end of the defined range for the letter grade. For instance, if "B" is defined as 86% to 84%, a letter grade of "B" will be worth 86%. The letter grade will be rejected if the assignment does not have a defined letter grading scheme. For more fine-grained control of scores, pass in points or percentage rather than the letter grade. "pass/complete/fail/incomplete":: A string value of "pass" or "complete" will give a score of 100%. "fail" or "incomplete" will give a score of 0. Note that assignments with grading_type of "pass_fail" can only be assigned a score of 0 or assignment.points_possible, nothing inbetween. If a posted_grade in the "points" or "percentage" format is sent, the grade will only be accepted if the grade equals one of those two values. | |
| submission[excuse] | boolean | Sets the "excused" status of an assignment. | |
| submission[late_policy_status] | string | Sets the late policy status to either "late", "missing", "extended", "none", or null. NB: "extended" values can only be set in the UI when the "UI features for 'extended' Submissions" Account Feature is on | |
| submission[seconds_late_override] | integer | Sets the seconds late if late policy status is "late" | |
| rubric_assessment | RubricAssessment | Assign a rubric assessment to this assignment submission. The sub-parameters here depend on the rubric for the assignment. The general format is, for each row in the rubric: The points awarded for this row. rubric_assessment[criterion_id][points] The rating id for the row. rubric_assessment[criterion_id][rating_id] Comments to add for this row. rubric_assessment[criterion_id][comments] For example, if the assignment rubric is (in JSON format): !!!javascript [ { 'id': 'crit1', 'points': 10, 'description': 'Criterion 1', 'ratings': [ { 'id': 'rat1', 'description': 'Good', 'points': 10 }, { 'id': 'rat2', 'description': 'Poor', 'points': 3 } ] }, { 'id': 'crit2', 'points': 5, 'description': 'Criterion 2', 'ratings': [ { 'id': 'rat1', 'description': 'Exemplary', 'points': 5 }, { 'id': 'rat2', 'description': 'Complete', 'points': 5 }, { 'id': 'rat3', 'description': 'Incomplete', 'points': 0 } ] } ] Then a possible set of values for rubric_assessment would be: rubric_assessment[crit1][points]=3&rubric_assessment[crit1][rating_id]=rat1&rubric_assessment[crit2][points]=5&rubric_assessment[crit2][rating_id]=rat2&rubric_assessment[crit2][comments]=Well%20Done. |
List gradeable students SubmissionsApiController#gradeable_students
GET /api/v1/courses/:course_id/assignments/:assignment_id/gradeable_students
url:GET|/api/v1/courses/:course_id/assignments/:assignment_id/gradeable_students
Request Parameters:
| Parameter | Type | Description | |
|---|---|---|---|
| sort | string |
Sort results by this field.
Allowed values: |
|
| order | string |
The sorting order. Defaults to 'asc'.
Allowed values: |
List multiple assignments gradeable students SubmissionsApiController#multiple_gradeable_students
GET /api/v1/courses/:course_id/assignments/gradeable_students
url:GET|/api/v1/courses/:course_id/assignments/gradeable_students
Request Parameters:
| Parameter | Type | Description | |
|---|---|---|---|
| assignment_ids[] | string | Assignments being requested |
Example Response:
A [UserDisplay] with an extra assignment_ids field to indicate what assignments
that user can submit
[
{
"id": 2,
"display_name": "Display Name",
"avatar_image_url": "http://avatar-image-url.jpeg",
"html_url": "http://canvas.com",
"assignment_ids": [1, 2, 3]
}
]
Grade or comment on multiple submissions SubmissionsApiController#bulk_update
POST /api/v1/courses/:course_id/submissions/update_grades
url:POST|/api/v1/courses/:course_id/submissions/update_grades
POST /api/v1/courses/:course_id/assignments/:assignment_id/submissions/update_grades
url:POST|/api/v1/courses/:course_id/assignments/:assignment_id/submissions/update_grades
POST /api/v1/sections/:section_id/submissions/update_grades
url:POST|/api/v1/sections/:section_id/submissions/update_grades
POST /api/v1/sections/:section_id/assignments/:assignment_id/submissions/update_grades
url:POST|/api/v1/sections/:section_id/assignments/:assignment_id/submissions/update_grades
Request Parameters:
| Parameter | Type | Description | |
|---|---|---|---|
| grade_data[<student_id>][posted_grade] | string | See documentation for the posted_grade argument in the Submissions Update documentation | |
| grade_data[<student_id>][excuse] | boolean | See documentation for the excuse argument in the Submissions Update documentation | |
| grade_data[<student_id>][rubric_assessment] | RubricAssessment | See documentation for the rubric_assessment argument in the Submissions Update documentation | |
| grade_data[<student_id>][text_comment] | string | no description | |
| grade_data[<student_id>][group_comment] | boolean | no description | |
| grade_data[<student_id>][media_comment_id] | string | no description | |
| grade_data[<student_id>][media_comment_type] | string |
no description
Allowed values: |
|
| grade_data[<student_id>][file_ids][] | integer | See documentation for the comment[] arguments in the Submissions Update documentation | |
| grade_data[<assignment_id>][<student_id>] | integer | Specifies which assignment to grade. This argument is not necessary when using the assignment-specific endpoints. |
Example Request:
curl 'https://<canvas>/api/v1/courses/1/assignments/2/submissions/update_grades' \
-X POST \
-F 'grade_data[3][posted_grade]=88' \
-F 'grade_data[4][posted_grade]=95' \
-H "Authorization: Bearer <token>"
Mark submission as read SubmissionsApiController#mark_submission_read
PUT /api/v1/courses/:course_id/assignments/:assignment_id/submissions/:user_id/read
url:PUT|/api/v1/courses/:course_id/assignments/:assignment_id/submissions/:user_id/read
PUT /api/v1/sections/:section_id/assignments/:assignment_id/submissions/:user_id/read
url:PUT|/api/v1/sections/:section_id/assignments/:assignment_id/submissions/:user_id/read
Example Request:
curl 'https://<canvas>/api/v1/courses/<course_id>/assignments/<assignment_id>/submissions/<user_id>/read.json' \
-X PUT \
-H "Authorization: Bearer <token>" \
-H "Content-Length: 0"
Mark submission as unread SubmissionsApiController#mark_submission_unread
DELETE /api/v1/courses/:course_id/assignments/:assignment_id/submissions/:user_id/read
url:DELETE|/api/v1/courses/:course_id/assignments/:assignment_id/submissions/:user_id/read
DELETE /api/v1/sections/:section_id/assignments/:assignment_id/submissions/:user_id/read
url:DELETE|/api/v1/sections/:section_id/assignments/:assignment_id/submissions/:user_id/read
Example Request:
curl 'https://<canvas>/api/v1/courses/<course_id>/assignments/<assignment_id>/submissions/<user_id>/read.json' \
-X DELETE \
-H "Authorization: Bearer <token>"
Mark bulk submissions as read SubmissionsApiController#mark_bulk_submissions_as_read
PUT /api/v1/courses/:course_id/submissions/bulk_mark_read
url:PUT|/api/v1/courses/:course_id/submissions/bulk_mark_read
PUT /api/v1/sections/:section_id/submissions/bulk_mark_read
url:PUT|/api/v1/sections/:section_id/submissions/bulk_mark_read
Request Parameters:
| Parameter | Type | Description | |
|---|---|---|---|
| submissionIds[] | string | no description |
Example Request:
curl 'https://<canvas>/api/v1/courses/<course_id>/submissions/bulk_mark_read.json' \
-X PUT \
-H "Authorization: Bearer <token>" \
-H "Content-Length: 0" \
-F 'submissionIds=['88']'
Mark submission item as read SubmissionsApiController#mark_submission_item_read
PUT /api/v1/courses/:course_id/assignments/:assignment_id/submissions/:user_id/read/:item
url:PUT|/api/v1/courses/:course_id/assignments/:assignment_id/submissions/:user_id/read/:item
PUT /api/v1/sections/:section_id/assignments/:assignment_id/submissions/:user_id/read/:item
url:PUT|/api/v1/sections/:section_id/assignments/:assignment_id/submissions/:user_id/read/:item
Example Request:
curl 'https://<canvas>/api/v1/courses/<course_id>/assignments/<assignment_id>/submissions/<user_id>/read/<item>.json' \
-X PUT \
-H "Authorization: Bearer <token>" \
-H "Content-Length: 0"
Clear unread status for all submissions. SubmissionsApiController#submissions_clear_unread
PUT /api/v1/courses/:course_id/submissions/:user_id/clear_unread
url:PUT|/api/v1/courses/:course_id/submissions/:user_id/clear_unread
PUT /api/v1/sections/:section_id/submissions/:user_id/clear_unread
url:PUT|/api/v1/sections/:section_id/submissions/:user_id/clear_unread
Example Request:
curl 'https://<canvas>/api/v1/courses/<course_id>/submissions/<user_id>/clear_unread.json' \
-X PUT \
-H "Authorization: Bearer <token>" \
-H "Content-Length: 0"
Get rubric assessments read state SubmissionsApiController#rubric_assessments_read_state
GET /api/v1/courses/:course_id/assignments/:assignment_id/submissions/:user_id/rubric_comments/read
url:GET|/api/v1/courses/:course_id/assignments/:assignment_id/submissions/:user_id/rubric_comments/read
GET /api/v1/courses/:course_id/assignments/:assignment_id/submissions/:user_id/rubric_assessments/read
url:GET|/api/v1/courses/:course_id/assignments/:assignment_id/submissions/:user_id/rubric_assessments/read
GET /api/v1/sections/:section_id/assignments/:assignment_id/submissions/:user_id/rubric_comments/read
url:GET|/api/v1/sections/:section_id/assignments/:assignment_id/submissions/:user_id/rubric_comments/read
GET /api/v1/sections/:section_id/assignments/:assignment_id/submissions/:user_id/rubric_assessments/read
url:GET|/api/v1/sections/:section_id/assignments/:assignment_id/submissions/:user_id/rubric_assessments/read
Example Request:
curl 'https://<canvas>/api/v1/courses/<course_id>/assignments/<assignment_id>/submissions/<user_id>/rubric_comments/read' \
-H "Authorization: Bearer <token>"
# or
curl 'https://<canvas>/api/v1/courses/<course_id>/assignments/<assignment_id>/submissions/<user_id>/rubric_assessments/read' \
-H "Authorization: Bearer <token>"
Example Response:
{
"read": false
}
Mark rubric assessments as read SubmissionsApiController#mark_rubric_assessments_read
PUT /api/v1/courses/:course_id/assignments/:assignment_id/submissions/:user_id/rubric_comments/read
url:PUT|/api/v1/courses/:course_id/assignments/:assignment_id/submissions/:user_id/rubric_comments/read
PUT /api/v1/courses/:course_id/assignments/:assignment_id/submissions/:user_id/rubric_assessments/read
url:PUT|/api/v1/courses/:course_id/assignments/:assignment_id/submissions/:user_id/rubric_assessments/read
PUT /api/v1/sections/:section_id/assignments/:assignment_id/submissions/:user_id/rubric_comments/read
url:PUT|/api/v1/sections/:section_id/assignments/:assignment_id/submissions/:user_id/rubric_comments/read
PUT /api/v1/sections/:section_id/assignments/:assignment_id/submissions/:user_id/rubric_assessments/read
url:PUT|/api/v1/sections/:section_id/assignments/:assignment_id/submissions/:user_id/rubric_assessments/read
Example Request:
curl 'https://<canvas>/api/v1/courses/<course_id>/assignments/<assignment_id>/submissions/<user_id>/rubric_comments/read' \
-X PUT \
-H "Authorization: Bearer <token>" \
-H "Content-Length: 0"
# or
curl 'https://<canvas>/api/v1/courses/<course_id>/assignments/<assignment_id>/submissions/<user_id>/rubric_assessments/read' \
-X PUT \
-H "Authorization: Bearer <token>" \
-H "Content-Length: 0"
Example Response:
{
"read": true
}
Get document annotations read state SubmissionsApiController#document_annotations_read_state
GET /api/v1/courses/:course_id/assignments/:assignment_id/submissions/:user_id/document_annotations/read
url:GET|/api/v1/courses/:course_id/assignments/:assignment_id/submissions/:user_id/document_annotations/read
GET /api/v1/sections/:section_id/assignments/:assignment_id/submissions/:user_id/document_annotations/read
url:GET|/api/v1/sections/:section_id/assignments/:assignment_id/submissions/:user_id/document_annotations/read
Example Request:
curl 'https://<canvas>/api/v1/courses/<course_id>/assignments/<assignment_id>/submissions/<user_id>/document_annotations/read' \
-H "Authorization: Bearer <token>"
Example Response:
{
"read": false
}
Mark document annotations as read SubmissionsApiController#mark_document_annotations_read
PUT /api/v1/courses/:course_id/assignments/:assignment_id/submissions/:user_id/document_annotations/read
url:PUT|/api/v1/courses/:course_id/assignments/:assignment_id/submissions/:user_id/document_annotations/read
PUT /api/v1/sections/:section_id/assignments/:assignment_id/submissions/:user_id/document_annotations/read
url:PUT|/api/v1/sections/:section_id/assignments/:assignment_id/submissions/:user_id/document_annotations/read
Example Request:
curl 'https://<canvas>/api/v1/courses/<course_id>/assignments/<assignment_id>/submissions/<user_id>/document_annotations/read' \
-X PUT \
-H "Authorization: Bearer <token>" \
-H "Content-Length: 0"
Example Response:
{
"read": true
}
Submission Summary SubmissionsApiController#submission_summary
GET /api/v1/courses/:course_id/assignments/:assignment_id/submission_summary
url:GET|/api/v1/courses/:course_id/assignments/:assignment_id/submission_summary
GET /api/v1/sections/:section_id/assignments/:assignment_id/submission_summary
url:GET|/api/v1/sections/:section_id/assignments/:assignment_id/submission_summary
Request Parameters:
| Parameter | Type | Description | |
|---|---|---|---|
| grouped | boolean | If this argument is true, the response will take into account student groups. | |
| include_deactivated | boolean | If this argument is true, the response will include deactivated students in the summary (defaults to false). |
Example Response:
{
"graded": 5,
"ungraded": 10,
"not_submitted": 42
}