Grades API forbidden
hi..i'm tryin to fetch grades of a particular student using this url "{{domain}}/d2l/api/le/{{versionG}}/{{oid}}/grades/values/{{userId}}/ " , but its giving me a 403 which is forbidden, can anyone help me with it…. thank you.
Answers
-
Hello Sathish,
A 403 Forbidden error typically indicates that the server understood the request, but it refuses to authorize it. This status is often returned if the request lacks valid authentication credentials for the target resource or if the client does not have permission to access the requested resource1.
In the context of the Brightspace API, a 403 error could mean a few things:
- Incorrect User Permissions: The user associated with the API call might not have the necessary permissions to fetch grade values2. Please ensure that the user has the correct permissions in Brightspace.
- Invalid API Call: The API endpoint or the parameters you’re using could be incorrect3. Please ensure that you’re using the correct API endpoint and that the
{{domain}}
,{{versionG}}
,{{oid}}
, and{{userId}}
placeholders are replaced with valid values. - Session Timeout or Invalid Authentication: The session might have timed out, or the authentication might be invalid1. Please ensure that you’re correctly authenticated and that your session is active when making the API call.
If you’re still experiencing issues, could you please provide more details about the steps you’re taking, any error messages you’re seeing, and the context in which you’re making this API call? This will help us better understand the issue and provide a more accurate solution.
I hope this helps! If you have any other questions, feel free to ask. 😊
-
Hii… Miguel
i'm trying to fetch students grades and i have all the permissions, but still cant able to fetch the data. Maybe there is some problem with the scope, can you tell me what scope should i use to access the info related to grades
Thank you…✌
-
https://docs.valence.desire2learn.com/http-scopestable.html#
https://docs.valence.desire2learn.com/res/grade.html#get--d2l-api-le-(version)-(orgUnitId)-grades-values-(userId)-Every documented route (like the above) should include where relevant, a scopes declaration such as:
"Oauth2 Scopes: grades:gradevalues:read" from the above page.