AnsweredAssumed Answered

Why does gradebook/columns/id/attempts returns 500 instead of 204 no content or empty 200?

Question asked by chrishawl on Jun 27, 2018

I am trying to determine if an authenticated user has made a submission for an assignment by hitting this endpoint /learn/api/public/v2/courses/id/gradebook/columns/id/attempts It seems perfectly valid that a user may not have made any submission for an assignment yet it returns a 500. I can make the call by gradebook/columns/id/users/id However it seems a bit pointless to have to provide the user id when it's possible to detemrine the user using their token. Surely /learn/api/public/v2/courses/id/gradebook/columns/id/attempts should just return the attempts for that authenitcated user and not throw a 500 if they haven't made any submissions?