AnsweredAssumed Answered

How to Edit an Assignment with the API

Question asked by Charles Calvert on Jan 24, 2020
Latest reply on Jan 24, 2020 by Charles Calvert

I want to edit an assignment. I'm working in Node Express and using the Request NPM package to send HTTP requests. I have an API key and I can successfully make a number of calls that request information about modules and assignments. But when it comes to updating an assignment I'm not having much luck. I don't get an error, but I get a long HTML file in the "body" parameter returned by canvas stating that I'm not logged in or that my login has timed out.


What am I doing wrong? Where can I find examples of how to make this kind of call? I've seen the scanty API documentation on this subject but would like a more detailed tutorial or example. Again, I can make a number of calls successfully, it is this particular call to edit an assignment that I want to learn more about.


If using the request npm package is not the best approach, I'm open to suggestions...