How to get re-submissions via API?
I'm a teacher / facilitator for a school that uses brightspace. In order to make my life easier I made a browser plugin that scans all my classes for things I have to do. Tasks like "list of assignments to be graded", "list of unanswered questions", etc
I can use the following endpoint to get specific values.
TotalUsersWithSubmissions
and TotalUsersWithFeedback
. If those numbers aren't the same I know there's an un-evaluated assignment in that course.
The problems comes when a student re-submits an assignment. The fields from the previous request don't change. Which makes sense.
By inspecting the requests that the UI makes I can find that there's this endpoint:
https://abcd1234-abcd-abcd-abcd-abcd1234abcd.activities.api.brightspace.com/old/activities/xxxx_xxxx_xxxxxx/usages/{COURSE_ID}/evaluation-status
and it's response contains a field called resubmissions
with the appropriate value. However I can't find the equivalent call in the documented d2l API
The d2l API does offer this endpoint
Which does list all submissions, even new unevaluated ones. But offers no way to know which one is evaluated because the API "feedback" object has no "submission id" nor is there any timestamp that could be used to cross reference.
Is this an oversight of the API?
EDIT: This is a cross post of
that I'm posting to a different group. Sorry if this is against the rules.
Best Answer
-
Apologies for the lack of a prompt response Olivier! I saw that Stefanie (and others) helped in the other post, confirming that this is indeed a gap in our current API offerings. If you have time to submit your requirements to our Product Idea Exchange, that would be helpful, but Stefanie has also submitted an internal request for this functionality.
.
Answers
-
I might. I'm kindof in the perfect position to test as I am both a teacher using brightspace and a developer making tool for brightspace (mostly for myself but whatever).
Where can I submit such requests?
-
Under the community quicklinks widget (usually on the left hand side), you should see a link to the Product Idea Exchange. I've copied it below as well, but just in case this doesn't work.
https://community.desire2learn.com/d2l/common/dialogs/quickLink/quickLink.d2l?ou=1796&type=lti&rcode=D2LLC-8469&srcou=1796