Anyone having trouble creating or updating Dropbox / Assignments?
Options

Deleted.Account79
Posts: 20 🌱
in Archived
I'm trying to POST to /d2l/api/le/1.25/{ouid}/dropbox/folders/ or PUT to /d2l/api/le/1.25/{ouid}/dropbox/folders/{folderid} without success. My nodejs code and the https://apitesttool.desire2learnvalence.com/ both fail with { "type": "http://docs.valence.desire2learn.com/res/apiprop.html#invalid-parameters", "title": "Invalid Parameters", "status": 400, "detail": "Request has missing or invalid parameters."} There's no data about what parameter is missing or invalid. Here's my json body for an example PUT request { "CategoryId": null, "Name": "MikesTest Renamed", "CustomInstructions": { "Text": "Here are some instructions", "Html": "
Here are some instructions
" }, "Availability": null, "IsHidden": false, "GroupTypeId": null, "DueDate": null, "DisplayInCalendar": false, "NotificationEmail": null} Any help is greatly appreciated. Thanks!Answers
-
Hey Mike,
I believe what you're missing is that the "CustomInstructions" field is a"composite:RichTextInput" object and not a "composite:RichText" object. You can see the values required here for a RichTextInput:
I think once you fix that it should work no problem.
Hope that helps,
Dave
-
Thanks Dave!
That was it. I changed my request to
...
"CustomInstructions": {
"Content": "Here are some instructions",
"Type": "Text"
},
...
I can run the PUT twice: once for HTML and once for plain text to ensure both versions are good to go.
Super Thanks!
--Mike C
-
Confirmed that both PUT and POST work with the <composite:RichTextInput> object.
Categories
- All Categories
- 6 Thought Leadership
- 7 Known and Fixed Issues
- 6 Product Roadmap
- 553 Archived
- 10 Accessibility
- 28 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