Our custom lti external tool allows an instructor to choose the original redirect url with a visual interface.
Is there a way to update the redirect url using another POST from within the tool?
I don't want to do it manually.
After finding that I needed to change the assignment, I figured out how to Edit an Assignment using the API.
Canvas LMS REST API Documentation
Kenneth Larsen helped me with my other question.
https://community.canvaslms.com/thread/2681?q=how%20to
To update the redirect url of an assignment created using an External Tool after the original resource selection.
I needed to PUT using curl.
$data = "assignment[external_tool_tag_attributes][url] = newURL";
$ch = curl_init();
curl_setopt_array($ch, array(
CURLOPT_URL => $canvasapi."?access_token=".$atoken,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => $data,
CURLOPT_RETURNTRANSFER => true,
));
$result = curl_exec($ch);
curl_close($ch);
Travis:
Just discovered your question, and noted that nobody had answered you yet.......................
Yes, you can update Redirect installations - these instructions are for course-level:
I hope this helps
Hello, I'm building a standalone app that integrate with CanvasI) - What are the requirements (and cost if any) for receiving an API developer key issued by Instructure? - Are Instructure-issued keys enabled globally in all Canvas organizations? or will there need to be institution-by-institution enablement? Thanks
Hi everyone, I am seeking some insight into how Canvas LMS handles HTTP errors and how they are reflected in the logs versus the user interface. We are currently observing the following behavior in our environment: Log-only errors: We are seeing 500 (Internal Server Error) and 503 (Service Unavailable) errors recorded in…
I'm currently integrating an LTI tool and attempting to use the Activity.id.history https://canvas.instructure.com/doc/api/file.tools_variable_substitutions.html#activity-id-history variable, but I'm experiencing issues getting it to work properly. What I've Done: Added the Activity.id.history variable to my Developer…
I looked through the LTI Variable Substitutions documentation and while there are variable substitutions available for Canvas.term.name and Canvas.term.id (which is the Canvas incremented ID like "104"), I was surprised to see there was no option for Canvas.term.sisSourceId I tried testing other possible variants that may…
Summary:The Learning Mastery Gradebook allows drag-and-drop reordering of outcome columns, and this triggers a call to /api/v1/courses/:course_id/assign_outcome_order. The API returns 204 No Content (success), but the column order does not persist after page refresh. Steps to Reproduce: Open Learning Mastery Gradebook for…