def _update_external_tool(self, context, context_id, external_tool_id,<EOL>json_data):
url = context.format(context_id) + "<STR_LIT>".format(<EOL>external_tool_id)<EOL>return self._put_resource(url, body=json_data)<EOL>
Update the external tool identified by external_tool_id with the passed
json data.

context is either COURSES_API or ACCOUNTS_API.
context_id is the course_id or account_id, depending on context

https://canvas.instructure.com/doc/api/external_tools.html#method.external_tools.update