-
oAuth get access token using python
Hi, Does anyone have an Python example of how to get an access token using the oAuth2 workflow without using an refresh token? I can get an access token based on a valid refresh-token but I'm trying to build a solution which does not rely on a refesh-token to be available. I get stuck in the login step because I can't find…
-
Receiving a 403 Forbidden API Error Message
We are running performance testing in our Brightspace test server with 7% failures related to "403 Forbidden" error messages. Perf Testing: We are automating 18 users to load the widget every second for 1 minute—equaling to about 1,080 users in a minute. Background: We have 4 back-end servers with round-robin traffic…
-
Bulk Deletion of Sections from Courses in Brightspace (via API or Other Method)
What is the recommended and secure way to bulk delete sections from both current and historical courses in Brightspace? Is there a supported method using the Brightspace API or another automated approach for managing this at scale? Any guidance, best practices, or documentation would be greatly appreciated.
-
API reports "Resource not found" when trying to a create course section in a course offering
We have a course offering created by the API but Brightspace reports its endpoint does not exist. When POSTing to its endpoint to create the section the API reports "Resource not found". The course offering exists and the API can find it.
-
Testing Brightspace API - Create Folder in Manage Files
Hello So I've been trying to test APIs to create folders in manage files of a course, and then try to upload a file into the,m and I can't seem to get the api to work on Postman. This is my Create folder api, which I created using the Valence documentation. Is there something I've done wrong here? I keep getting the 404…
-
How to access value of grading item computed by formula from API?
Using , specifically GET /d2l/api/le/(version)/(orgUnitId)/grades/(gradeObjectId)/values/ I am able to access the score each student sees in their own grading system from the API (so I can ensure that I give them the according grades). However, I have a final formula that computes how many bonus points they are entitled…
-
How to download issued certificates via API using Bearer token?
Hello D2L team, I’m currently using the Brightspace API to retrieve issued certificates for students in our institution via the endpoint: bashCopiarEditarGET /d2l/api/bas/1.4/issued/users/{userId} From the response, I obtain both the OrgUnitId and IssuedId, and construct the download URL as documented:…
-
Service-to-service authentication?
We want to automate some processes using the Brightspace API, without the need for a human to log in (because the automation process will be running on a server). Does Brightspace have a process for service-to-service (S2S) authentication? To reiterate, we need to integrate with Brightspace's API without user interaction,…
-
Which scope is required to download a feedback document from an assignment?
I am trying to download feedback documents from assignments (dropbox) using this API call: GET /d2l/api/le/(version)/(orgUnitId)/dropbox/folders/(folderId)/feedback/(entityType)/(entityId)/attachments/(fileId) It gives met a 403 (Not Authorized) error. The user running the API call is a Super Admin and in Brightspace it is…
-
Retrieve the submission for a selected student
The API provides an end point to retrieve information about all submissions to a selected assignment folder (dropbox) GET /d2l/api/le/(version)/(orgUnitId)/dropbox/folders/(folderId)/submissions/ It does not include a parameter to provide a userId to only retrieve the information for a specific student and so you have to…
-
Help with OAuth 2.0 Client Credentials Implementation
We are working on integrating Brightspace with a third-party solution and would like to confirm whether the OAuth 2.0 Client Credentials Flow is supported for authentication. If not, what alternative approach would allow us to implement OAuth 2.0 without requiring user intervention? Thank you for your guidance!
-
Unauthorized Error When Generating Access Token via Postman
Input Request: curl --location 'https://auth.brightspace.com/core/connect/token' --header 'Content-Type: application/x-www-form-urlencoded' --data-urlencode 'grant_type=client_credentials' --data-urlencode 'client_id=72f31814---**-1c168ffe32d3' --data-urlencode 'client_secret=WExEwa********************ZJIeppks'…
-
API integration and section associations
We have switched to an API integration because we have implemented a new SIS. The new integration with Brightspace does not create SIS section associations, which has created a big challenge for us because we are unable to merge courses directly in Brightspace. Has anyone using an API integration been able to configure the…
-
LMS Admin Question > Course Sections
Hi All- Currently in the middle of a SIS change over and testing the API between the SIS and Brightspace. Noticed this morning on a test push, that the course sent over only had an offering and had no section. In our current LMS setup, we sent over the template, course offering and then a course section. I was not involved…
-
Error 403 when creating a new user via API request
Hi, I'm trying to create a new user using a Postman request, but I'm getting error 403 (Forbidden). I already tested the whoami request and was successful (status 200); my username has all the credentials to create a user, and I'm using the scope "core:: user::" when creating the token. Is there something I am missing? I…
-
Insufficient scope to call API.Required: ltiv1p3:ags:readlineitem
Hello, I'm trying to manage grades in BrightSpace using a LTI Advantage 1.3 tool connecting to our in house software. I had success registering the app, deploying it, login, accessing course and user info using this as a base : Now I want to access AGS (Assignment and Grade Services). I used this resource to do build my…
-
API PUT to Course Offering Failing
I'm attempting to update a Course Offering to set IsActive to false. This is the record I'm attempting to update: { "Identifier": "745849", "Name": "Fall 2023 - Pharmacology I (NURS-3104-A-B)", "Code": "X2388082480198", "IsActive": true, "CanSelfRegister": false, "Description": { "Text": "", "Html": "" }, "Path":…