LTI 1.3 AGS Deleting a Line Item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello!
We are currently integrated as 1.3 tool with Canvas. We have dynamic registration set up as well as the ability to create Line Items via LTI 1.3 Assignment and Grade Services (AGS). We are working on deleting these line items using the delete functionality of AGS however we keep running into the response 401 Unauthorized. Our current code hits the endpoint /api/lti/courses/:course_id/line_items/:id as a delete request. This code seems to work in D2L as well as Schoology which made me suspect there was something going on with Canvas.
I looked into what I believe is the public code for Canvas (https://github.com/instructure/canvas-lms). Under the file canvas-lms/app/controllers/lti/ims/line_items_controller.rb I found the destroy method. It looks like it returns the unauthorized response because the line_item is coupled. I was unable to understand why a line item would end up coupled or if there was a way to get past this coupling.
My overall question would be, is there a way to delete a line item from Canvas that we have created via AGS?
Thanks for any help!
Josh