Edit an assignment's submission_types
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2017
08:59 PM
So I'm trying to edit an assignment's submission_types using this documentation: Assignments - Canvas LMS REST API Documentation
I have it working for when you need to set it to one thing, i.e. "online_quiz" by using this syntax for the payload:
{'assignment[submission_types][]':"online_quiz"}
However, when I try to use multiple arguments as the API says is possible I can't get the call to work. Syntax:
{'assignment[submission_types][]':["online_text_entry", "online_url"]}
Comes back with a 400 error.
Any help would be appreciated.