For Developers

Get Submission

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

Retrieve information about a specific Submission.

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.get(`https://ed.link/api/v2/my/classes/${class_id}/assignments/${assignment_id}/submissions/${submission_id}`, {
    headers: {
        authorization: `Bearer ${person_access_token}`
    }
});

Sample Response

{
    "$request": "00000000-0000-0000-0000-000000000000",
    "$data": {
        "flags": [],
        "state": "created",
        "created_date": "2022-01-27T17:10:09.702Z",
        "attempts": [
            {
                "attachments": [
                    {
                        "type": "text",
                        "text": "This is the body of a text submission."
                    }
                ],
                "created_date": "2022-01-27T17:10:09.702Z"
            },
            {
                "attachments": [
                    {
                        "type": "link",
                        "url": "https://www.example.com/my-submission.html/"
                    }
                ],
                "created_date": "2022-01-28T17:10:09.702Z"
            }
        ],
        "id": "00000000-0000-0000-0000-000000000000",
        "person_id": "00000000-0000-0000-0000-000000000000"
    }
}