AnsweredAssumed Answered

How to Submit to an External Tool Type Assignment?

Question asked by Douglas Tan on Feb 23, 2017
Latest reply on Jul 27, 2017 by Peter Love

First follow the steps here to create an Assignment of submission type External tool.

How do I add an assignment using an external app? 


My question is how do a student submit anything to this assignment? Is it through the external tool by calling the Canvas API? If so then what API method and how to set the input parameters?


I tried to use the following API method

POST /v1/courses/{course_id}/assignments/{assignment_id}/submissions

submission[submission_type] = basic_lti_launch

submission[url] = some url


The result is

{ "status": "unauthorised", "errors": [ { "message": "user not authorised to perform that action" } ] }


For comparison, I did the same test against a "submission type = online_url" assignment, same user, same API token, same course. same input parameters except the submission[submission_type]. Both assignments do not have due date set. And that one works fine.