For Developers

Return Submission

POST https://ed.link/api/v2/my/classes/:class\_id/assignments/:assignment\_id/submissions/:submission\_id/return

As a teacher, finalize the grade for a Submission and send it back to the assignee.

The user must be enrolled as a teacher, ta, designer, administrator, or district-administrator in the class to use this endpoint.

Request Parameters

ParameterTypeDescription
class_idstringThe UUID of the desired Class.
assignment_idstringThe UUID of the desired Assignment.
submission_idstringThe UUID of the desired Submission.

Sample Request

axios.post(`https://ed.link/api/v2/my/classes/${class_id}/assignments/${assignment_id}/submissions/${submission_id}/return`, {
    headers: {
        authorization: `Bearer ${person_access_token}`
    }
});

Sample Response

The response contains the updated Submission object.

{
    "$request": "00000000-0000-0000-0000-000000000000",
    "$data": {
        "flags": [],
        "state": "returned",
        "created_date": "2022-01-27T17:10:09.702Z",
        "attempts": [
            {
                "body": {
                    "type": "link",
                    "url": "https://google.com"
                },
                "created_date": "2022-01-27T17:10:09.702Z"
            },
            {
                "body": {
                    "type": "text",
                    "url": "This is the body of a text submission."
                },
                "created_date": "2022-01-27T17:10:09.702Z"
            }
        ],
        "grade_points": 12,
        "override_due_date": "2022-01-29T23:59:59.000Z",
        "id": "00000000-0000-0000-0000-000000000000",
        "person_id": "00000000-0000-0000-0000-000000000000"
    }
}