Grade value DELETE API gives "405 Method Not Allowed" error
 
            Hi All,
We are trying to execute a DELETE request to the API "/d2l/api/le/(version)/(orgUnitId)/grades/(gradeObjectId)/values/(userId)" to delete an existing grade item value for a user. But we are getting the following error:
{
"type": "http://docs.valence.desire2learn.com/res/apiprop.html#method-not-allowed",
"title": "Method Not Allowed",
"status": 405,
"detail": "The DELETE method is not allowed on this resource.",
"allowed_methods": [
"GET",
"PUT",
"HEAD"
]
}
Is there any capability to obtain DELETE permission to this endpoint? Or is there any other method to delete a single user grade in D2L gradebook?
Answers
- 
            Hi Vinodya, Unfortunately, there isn't any Delete API call as such " /d2l/api/le/(version)/(orgUnitId)/grades/(gradeObjectId)/values/(userId)" in our system. The above API is used for a GET call to retrieve a specific grade value for a particular user assigned in an org unit. And this is not used for delete operation. A grade item can be deleted from a course only and not user wise. To delete a grade item from the course offering you need to run the below API call /d2l/api/le/(version)/(orgUnitId)/grades/(gradeObjectId) You can refer the below article to see the various delete api operations that can be done on a grade item https://docs.valence.desire2learn.com/res/grade.html Thanks, Sreelakshmi Nair 
- 
            Noted! Thank you so much for the informative update @Sreelakshmi Nair 
