Canvas API for external tool not working

Jump to solution
RohitJain
Community Member

When we create a new assignment with external tool settings(using Canvas API) it creates everything perfectly but the link for Vocareum assignment(External tool) does not take us to the assignment. Instead it throws LTI 1.3 Course Data Not Found error.
But, when we create another new assignment with the external tool link same as Vocareum assignment LTI link our previous assignment(the one created through Canvas API) starts working too.

Example call to Canvas we are using -

curl 'https://xxx.instructure.com/api/v1/courses/xxx/assignments' -X POST -F 'assignment[name]=Vocareum Assignment' -F 'assignment[submission_types][]=external_tool' -F 'assignment[external_tool_tag_attributes][url]=https://labs.vocareum.com/lti/launch.php?assignment=xxxxxx' -F 'assignment[external_tool_tag_attributes][new_tab]=true' -H 'Authorization: Bearer XXXXXXXXXXXXXXX'

 

 

Labels (1)
0 Likes
1 Solution
nmbucklein
Instructure
Instructure

Hi there @RohitJain !

I reviewed your api call format and could not find anything wrong with that, so it may be an integration issue with the LTI itself. I would recommend contacting our support team to have them take a closer look! How do I contact Canvas Support? 

View solution in original post

0 Likes