Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create_course_assignment using the assignment_overrides argument? #71

Open
cmgray00 opened this issue Oct 2, 2024 · 0 comments

Comments

@cmgray00
Copy link

cmgray00 commented Oct 2, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant