-
Adding Course Content through API calls
I'm following the https://community.d2l.com/brightspace/kb/articles/1529-adding-course-content using Postman. I've followed most of the tutorials on the site with success with this one exception. When I run the API call, according to the directions, I get a { Errors: [ {Message: "Insufficient scope to call API.Required:…
-
Enrollment API call failing with a specific user role type
We are experiencing an issue when trying to enroll a user with a specific type of User role. The endpoint that is being used is POST /d2l/api/lp/1.9/enrollments. The process is supposed to create a demo student for a course and has been working for a few years, but since near the end of January the enrollment call has been…
-
What is the path to get org unit paths?
This API route - PUT /d2l/api/lp/(version)/orgstructure/(orgUnitId) - requires Path as part of the OrgUnit.OrgUnitProperties { "Identifier": <string:D2LID>, "Name": <string>, "Code": <string>|null, "Path": <string>, "Type": { <composite:OrgUnit.OrgUnitTypeInfo> } } However, the similar GET call does not return Path. The…
-
Is a "Learner" role allowed to update the grades through an API Call?
I'm having trouble trying to make the API call below due to the lack of permissions from "Learner", the scope given is correct but yet the API returns a 403 which is forbidden. PUT https://learn.build.org/d2l/api/le/1.9/(orgUnitId)/grades/(gradeObjectId)/values/(myGradeValues) { "GradeObjectType": 1, "PointsNumerator": 12…
-
Can you replace the dead links here, please 🙏:
https://community.d2l.com/brightspace/kb/articles/1375-user-authentication-faqs-best-practices
-
Setting dropbox "out of"/ScoreDenominator from API
I'm trying to create an assignment dropbox and a new grade item from the API, with the dropbox linked to the new grade item. Everything works in isolation, but when I add the AssociatedTool parameters to the call which creates the Grade object (to link it to the dropbox), it generates a 500 error. Trial and error has shown…
-
Is there a way through the Data Hub or via Insights tools that we can determine which courses do...
Is there a way through the Data Hub or via Insights tools that we can determine which courses do (or do not) have an attachment uploaded in the "Overview" section of the content tool? We're aiming to run a report to make sure the syllabus is uploaded in each course. I'm seeing data sets for content modules or content…
-
How to interpret data returned when making banner image API call?
Hi there, My team is currently creating a custom student dashboard widget for the main homepage. Pulling the various course information is working, but when trying to make the banner image call, we've hit a snag. This is the API call: GET /d2l/api/lp/(version)/courses/(orgUnitId)/image And although there isn't any…
-
Unable to create a Grade.GradeObject using OAuth 2.0 API
While trying to create a create a gradeObject (POST /d2l/api/le/(version)/(orgUnitId)/grades/) using the API vide OAuth 2.0, I receive the following error { "type": "http://docs.valence.desire2learn.com/res/apiprop.html#json-binding-error", "title": "JSON Binding Error", "status": 400, "detail": "Provided JSON is invalid…
-
Pass user photo to Brightspace
We would like to set the Brightspace profile photos for our users using our photos from their ID cards. Is there a way using file transfer or the API to pass the photos? Has someone else done this before? We'd like to then prevent them from changing it (we have an approval process in place for the photos already in our…
-
All of the data sets?
I am trying to determine a list of all of the D2L products and methods that provide data to admins, educators, and students. So far, I have come across the following names for data sources: Application API, Brightspace Data Portal, Brightspace Analytics, CSV Data Exports, Data API, Data Hub, Data Sets, Insights Console,…
-
API - PUT to user to remember action taken by user i.e. dismissing notice
Hi there, Can anyone suggest the best way of recording that a user has dismissed or actioned a notification in Brightspace? Example: if the user agree's to a statement with a checkbox, a PUT action so the statement is essentially dismissed and this action is recorded against the user to prevent the notification appearing…
-
We are trying to build a widget that uses an API call to display certain information based on...
We are trying to build a widget that uses an API call to display certain information based on the term name that is part of the course name. Instructor or student roles get a 403 error when the widget runs. How can we get those roles acccess? We are using this call: GET /d2l/api/lp/1.9/orgstructure/{orgUnitId} Is there a…
-
New Access Token error, "Error: unable to get local issuer certificate"
API newbie here. I'm taking the [Archived Content] Learn Postman With Paul course. I'm at the Get Initial Token phase in Postman. I've filled in all my fields, clicked "Get New Access Token", and I get prompted to sign in... Which I do - but then I get the, "Error: unable to get local issuer certificate" error. What am I…
-
What does the PUT /d2l/api/le/(version)/(orgUnitId)/content/topics/(topicId)/file want?
If a...
What does the PUT /d2l/api/le/(version)/(orgUnitId)/content/topics/(topicId)/file want?If a working example is available it would be very help, but I currently have no idea what to actually provide this route. I am building an app using react and the "superagent-d2l-session-auth" npm library the route method looks like…
-
Is D2L.Extensibility.AuthSdk.Restsharp for C#/.NET is missing an extension?
D2L.Extensibility.AuthSdk.Restsharp for C#/.NET Hello all, Please see attached doc for this question
-
What's the difference between inserting a YouTube video vs embedding a YouTube video?
Our Brightspace instance does not have an API key, so we can't use Insert Stuff > YouTube. As a workaround, our instructors use Insert Stuff > Enter Embed Code, then we use the embed URL from YouTube. What are the functional differences between these options? Are there benefits to using Insert Stuff > Youtube? Should I…
-
Why is "Email" returned as null in the Enrollment.ClasslistUser list result after calling GET...
Why is "Email" returned as null in the Enrollment.ClasslistUser list result after calling GET /d2l/api/le/(version)/(orgUnitId)/classlist/? These same users have email which shows up in User.UserData and User.UserProfile. But for some reason it does not get populated in Enrollment.ClasslistUser. This is what I get:…
-
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":…
-
Why grade value update API gives 400 JSON Binding Error for a null grade update?
Hi All, We are using the PUT API "/d2l/api/le/(version)/(orgUnitId)/grades/(gradeObjectId)/values/(userId)" to update an existing grade item with a null value. We are passing the following JSON object in the request body. { "Comments": { "Content": "Comments.", "Type": "Text" }, "PrivateComments": {…