Hi all,
I'm trying to use the Brighspace API to make submissions to assignments from an instructional programming environment (IPE). The students submits their work in the IPE, then the IPE submits the names of the files submitted to Brightspace.
I'm using this API:
POST /d2l/api/le/(version)/(orgUnitId)/dropbox/folders/(folderId)/submissions/mysubmissions/
but I'm getting a 400 status code with the detail, "Request has missing or invalid parameters."
The documentation says "The post’s multipart/mixed body should contain a JSON part encoding the submission’s descriptive comments in RichText, followed by the submission file’s data (the action requires a submission to include a file, not just a description)." I've taken a stab at following this but no luck so far.
Is there an example anywhere that shows what the POST body needs to contain?
Thank you,
—Jon