For Developers
Create Submission
POST https://ed.link/api/v2/graph/classes/:class\_id/assignments/:assignment\_id/submissions
Create a submission Submissions for a given Assignment.
Request Parameters
Parameter | Type | Description |
---|---|---|
class_id | string | The UUID of the desired Class. |
assignment_id | string | The UUID of the desired Assignment. |
Request Body
The request body should contain a Submissions object.
The following fields are required: person_id
.
The following fields are allowed: grader_id
, flags
, grade_comment
, grade_points
, grade
, extra_attempts
, override_due_date
.
{
"person_id": "00000000-0000-0000-0000-000000000000"
}
Sample Request
axios.post('https://ed.link/api/v2/graph/classes/00000000-0000-0000-0000-000000000000/assignments/00000000-0000-0000-0000-000000000000/submissions, {
headers: {
authorization: `Bearer ${integration_access_token}`
},
data: {
"flags": [],
"state": "created",
"person_id": "00000000-0000-0000-0000-000000000000",
"grade_points": 100,
"grade": 'A'
}
});
Sample Response
The response contains the created Submission object.
{
"$request": "00000000-0000-0000-0000-000000000000",
"$data": {
"flags": [],
"state": "submitted",
"created_date": "2022-01-27T17:10:09.702Z",
"attempts": [
{
"body": {
"type": "text",
"url": "This is the body of a text submission."
},
"created_date": "2022-01-27T17:10:09.702Z"
}
],
"override_due_date": "2022-01-29T23:59:59.000Z",
"id": "00000000-0000-0000-0000-000000000000",
"person_id": "00000000-0000-0000-0000-000000000000"
}
}