AnsweredAssumed Answered

Create Submissions with API

Question asked by Damaris Zarco on Jul 6, 2016
Latest reply on Jul 9, 2016 by Garth Egbert

We're developing an app that will create submissions in behalf of students. I'm trying to create the submissions using this endpoint, but the submission is not created (its workflow is still "unsubmitted").

My cURL request looks like so:

curl -X POST -g -H 'Content-Type: application/json'

-H 'Authorization: Bearer <token>' 'https://mydomain/api/v1/courses/343331/assignments/2705768/submissions'

-d'{"submission[submission_type]": "online_text_entry","submission[body]": "<p>Present</p>"}'

 

I don't get errors or anything, but the data call doesn't work. I was able to get the update_grades endpoint to work, but the problem is that it doesn't update the submitted_at date. I need that field to not be null in order for my external LTI to work. Has anyone been able to get the "Submit an Assignment" endpoint to work?

Outcomes