AnsweredAssumed Answered

Create LTI Submission with API

Question asked by Peter Franza on Jul 15, 2016
Latest reply on Jul 27, 2016 by Garth Egbert


So I have an LTI tool, and I want to be able to send back assignment submissions that have an LTI launch that will bring the speedgrader directly into the submission.  Looking at the api docs it would seem that this is possible because it accepts a submission_type of basic_lti_launch

curl https://<canvas_url>/api/v1/sections/27/assignments/253/submissions       -F 'submission[submission_type]=basic_lti_launch'       -F 'submission[url]=http://localhost:8080/ltilaunch/info'       -H 'Authorization: Bearer GFn...ZXLo'

However when I call that it responds with:

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

I know that I have access to submit an assignment using my auth token because if I change the assignment to accept a url submission and then alter my curl to be type=online_url  it accepts it.

 

Is there a trick or something that I am missing in the doc about sending a basic_lti_launch as an assignment submission?

Outcomes