rcanvas icon indicating copy to clipboard operation
rcanvas copied to clipboard

How to create_course_assignment using the assignment_overrides argument?

Open cmgray00 opened this issue 4 months ago • 0 comments

Hello! I'm very new to interacting with APIs in general.

I'm trying to create_course_assignment with the 'assignment_overrides' parameter populated. I see it asks to supply a 'list', but I don't know what the list format should be. Does anyone have an example?

My parameter input resembles the following: assignment_overrides = list('course_section_id'='710724')

...where I get error: Error in curl::handle_setform(handle, .list = req$fields) : Unsupported value type for form field 'assignment[assignment_overrides]'.

A different attempt is: assignment_overrides = list('course_section_id':710724)

... where I get error: Error in "course_section_id":710724 : NA/NaN argument

I've tried: = vs : '' in different places or absent c() vs list()

Contextual info: my other arguments are fine (without the assignment_overrides parameter, I can create the assignment.) My code with the overrides aims to create a brand new assignment (not update a pre-existing one. Although, that would be fine, too; anything that works!)

Thank you.

cmgray00 avatar Oct 02 '24 19:10 cmgray00