API Question - Automatic upload of an externally created 4MB JSON File to "Org files" each night

Answers
-
@Richard Stephens - Hi Richard! Thanks for posting on Community. I'm going to have to do some research into this one with some internal resources. I'll get back to you as soon as I have more information.
In the meantime, we have a Developers group right here in Community where API is a big topic of conversation - you may want to cross-post your question there and see if your peers have any input for you!
Group URL:
https://community.brightspace.com/s/group/0F9610000001mZ1CAI/developers
-
@Richard Stephens - Good morning, Richard - here is what I heard back from our internal API specialist:
Not 100% sure if it will work. But you can experiment with the Content Topic creation API and see if you can make it upload a file to that location. If you use the same location it can overwrite. You will need to make a module first then add topic. Might want to delete the module/topic when the file upload is done.
Maybe you can make a new OU and set its Path via the Org Unit Editor to what you like and then upload files to that OU as Content Topics. But I am a little worried about access restrictions for people not enrolled in that OU so that is something to test out.
If the people who need to use the widget can't access the data then this idea is out.
https://docs.valence.desire2learn.com/res/content.html#post--d2l-api-le-(version)-(orgUnitId)-content-modules-(moduleId)-structure-
-
Hi Scotty,
Many thanks for your replies and the suggestions.
I'll investigate...
Kind regards,
Richard.
-
@Richard Stephens - one more piece of information came in that I'd like to relay:
We have a service that is doing this, it leverages an API call to write a file into org files - it uses the following API calls:
- POST /d2l/api/le/{version}/6606/content/root/
- POST /d2l/api/le/{version}/6606/content/modules/{moduleid}/structure/
- DELETE /d2l/api/le/{version}/6606/content/modules/{moduleid}
-
Hi Scotty,
Thanks again for all your assistance - this sounds hopeful.
A further query (if you have time?): I would like to do this using your Python client library as a Python program will easily attach to the end of my existing batch process.
https://docs.valence.desire2learn.com/clients/python/index.html
Do you see any issues combining your latest suggestions and this library?
Kind regards,
Richard
Categories
- All Categories
- 6 Thought Leadership
- 7 Known and Fixed Issues
- 6 Product Roadmap
- 553 Archived
- 10 Accessibility
- 27 Community Corner
- 2 Welcome
- Updates
- Member Spotlights
- 4 Events
- 242 Development
- 746 Customer Enablement
- Evaluate - Assess Student Learning
- Get Comfortable with Brightspace
- Communicate - Engage with Your Students
- 1 Create - Set up your Brightspace course
- Action - Add or create student activities
- 26 Partners
- 8 Product News
- 2022
- 2022 Release Notes
- 2021 Release Notes
- 4 Training
- andycat