Skip to content

How to create_course_assignment using the assignment_overrides argument? #71

@cmgray00

Description

@cmgray00

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions