notes-20160813-submissions

If a student has submitted an assignment, you can get a list of all the submissions for a given assignment:

curl -H 'Authorization: Bearer 8..K' https://kth.instructure.com/api/v1/courses/11/assignments/50/submissions

produced:

 [{"id":93,"body":null,"url":null,"grade":"complete","score":1.0,
"submitted_at":"2016-08-13T11:51:24Z","assignment_id":50,
"user_id":208,"submission_type":"online_upload","workflow_state":"graded",
"grade_matches_current_submission":true,"graded_at":"2016-08-13T11:52:28Z","grader_id":29,"attempt":1,
"excused":false,"late":false,
"preview_url":"https://kth.instructure.com/courses/11/assignments/50/submissions/208?preview=1\u0026version=1",
"attachments":[{"id":18554,"folder_id":1740,
"display_name":"Project_Plan_Template-2015.docx",
"filename":"Project_Plan_Template-2015.docx",
"content-type":"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"url":"https://kth.instructure.com/files/18554/download?download_frd=1\u0026verifier=
ylJdl5KAlPPE5OHscSiQ0uU84YmxqnVu6BNCLXi5",
"size":43609,"created_at":"2016-08-13T11:51:23Z",
"updated_at":"2016-08-13T11:56:17Z","unlock_at":null,"locked":false,
"hidden":false,"lock_at":null,"hidden_for_user":false,"
thumbnail_url":null,"modified_at":"2016-08-13T11:51:23Z",
"locked_for_user":false,
"preview_url":"/api/v1/crocodoc_session?blob=%7B%22user_id%22:87790000000000029,%22attachment_id%22:18554,%22type%22:%22crocodoc%22%7
D\u0026hmac=03e7b509cc8fff74a9b59c9f8436ee9f3a05d1f2"}]}]