First follow the steps here to create an Assignment of submission type External tool.
How do I add an external app as an assignment submission type?
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
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.
Thanks