Reputation: 129
Grade submission though valence is giving me issues.
Trying to model the request per https://docs.valence.desire2learn.com/res/grade.html#put--d2l-api-le-%28D2LVERSION-version%29-%28D2LID-orgUnitId%29-grades-%28D2LID-gradeObjectId%29-values-%28D2LID-userId%29
Oct 9, 2012 8:20:02 AM com.sun.jersey.api.client.filter.LoggingFilter log
INFO: 3 * Client out-bound request
3 > PUT http{s}://elearning.test.masked.edu:443/d2l/api/le/1.0/47908/grades/217237/values/37185 (Yes the x_a, x_b, and x_t parameters are set and correct)
{"GradeObjectType":4,"Text":"1052012"}
The response is always a 404.
Oct 9, 2012 8:20:02 AM com.sun.jersey.api.client.filter.LoggingFilter log
INFO: 3 * Client in-bound response
3 < 404
To rule out permission issues and ensure the values were correct, I logged in through D2L's user interface and set a grade using the user who is making the valence call. It worked.
Upvotes: 0
Views: 206
Reputation: 129
The problem was that the date was past the course end date. D2L allows for grades to be viewed and submitted through the web page after the course end date, but not currently through the Valence API. This is a known issue with releases 9.4.1 through 10.1.0 and D2L reports that the issue is in their internal defect tracking system for fixing. Comment Edited per D2L suggestion. Thanks for the help.
Upvotes: 1