Edit an assignment's submission_types

jah1145
Community Novice

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.

Labels (1)